Yardstick API refactor 21/26321/2
authorchenjiankun <chenjiankun1@huawei.com>
Wed, 21 Dec 2016 01:07:26 +0000 (01:07 +0000)
committerchenjiankun <chenjiankun1@huawei.com>
Thu, 22 Dec 2016 11:11:37 +0000 (11:11 +0000)
commit70d25b87c167bc13e883da2963980cce56410f98
treea9ecd80e6ed440001f9f7b5a595f0e9ddc0c05cf
parentad37cb3cc16f8979caf7dc836e4fda8fe7955d5c
Yardstick API refactor

JIRA: YARDSTICK-503

Now in api/views.py there are many redundant code.
So I do some refactoring and make it to be a lightweight framework.

Change-Id: Id7cecc95e60f5403b2d26239a3ef41d01bbb542a
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
api/base.py [new file with mode: 0644]
api/resources/__init__.py [moved from api/actions/__init__.py with 100% similarity]
api/resources/env_action.py [moved from api/actions/env.py with 100% similarity]
api/resources/release_action.py [moved from api/actions/test.py with 100% similarity]
api/resources/results.py [moved from api/actions/result.py with 97% similarity]
api/resources/samples_action.py [moved from api/actions/samples.py with 100% similarity]
api/urls.py
api/views.py