diff options
author | 2017-03-18 14:16:26 +0530 | |
---|---|---|
committer | 2017-03-22 19:09:42 +0530 | |
commit | bef693f40ad87170b7233b9fef62f2fd8abfc8d8 (patch) | |
tree | 5d96386803b51a7c30a4c615d7525af630f7268b /qtip/api/swagger/swagger.yaml | |
parent | 29df737b48ccf31f555d0e4c08a65e14ecb66331 (diff) |
Add unit tests for List and get in API.
- refactor controllers
- remove abspath and other irrelvant data in response
- move fixtures
- refactor decorators
JIRA: QTIP-226
Change-Id: I5fac5b1bc998da198098992e7ddb47ba49685f31
Signed-off-by: akhilbatra898 <akhil.batra@research.iiit.ac.in>
Diffstat (limited to 'qtip/api/swagger/swagger.yaml')
-rw-r--r-- | qtip/api/swagger/swagger.yaml | 64 |
1 files changed, 18 insertions, 46 deletions
diff --git a/qtip/api/swagger/swagger.yaml b/qtip/api/swagger/swagger.yaml index c2de2d68..51c3ebb8 100644 --- a/qtip/api/swagger/swagger.yaml +++ b/qtip/api/swagger/swagger.yaml @@ -212,7 +212,7 @@ paths: schema: $ref: '#/definitions/Error' definitions: - PlanContent: + Plan: type: object required: - name @@ -232,23 +232,13 @@ definitions: Plans: type: object required: - - name - - abspath + - plans properties: - name: - type: string - abspath: - type: string - Plan: - allOf: - - $ref: '#/definitions/Plans' - - type: object - - required: - - content - properties: - content: - $ref: '#/definitions/PlanContent' - MetricContent: + plans: + type: array + items: + type: string + Metric: type: object required: - name @@ -268,22 +258,13 @@ definitions: Metrics: type: object required: - - name - - abspath + - metrics properties: - name: - type: string - abspath: - type: string - Metric: - allOf: - - $ref: '#/definitions/Metrics' - - required: - - content - properties: - content: - $ref: '#/definitions/MetricContent' - QPIContent: + metrics: + type: array + items: + type: string + QPI: type: object required: - name @@ -301,21 +282,12 @@ definitions: QPIs: type: object required: - - name - - abspath + - qpis properties: - name: - type: string - abspath: - type: string - QPI: - allOf: - - $ref: '#/definitions/QPIs' - - required: - - content - properties: - content: - $ref: '#/definitions/QPIContent' + qpis: + type: array + items: + type: string Error: type: object properties: |