aboutsummaryrefslogtreecommitdiffstats
path: root/functest/api/swagger/task.yaml
diff options
context:
space:
mode:
authorJose Lausuch <jalausuch@suse.com>2017-12-13 11:22:57 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-12-13 11:22:57 +0000
commit3306da5522f2576f2cd8431aac7fd4f3f4b32ca3 (patch)
tree865865bebaff4f3c52cc8f998841bf0e8e7f88e4 /functest/api/swagger/task.yaml
parent8043d389978b97a39f82c621381a0dff0b1425cd (diff)
parentde9a98ef629f1be49f7c432207462a159ff21612 (diff)
Merge "Fix yamllint errors in functest/api"
Diffstat (limited to 'functest/api/swagger/task.yaml')
-rw-r--r--functest/api/swagger/task.yaml59
1 files changed, 29 insertions, 30 deletions
diff --git a/functest/api/swagger/task.yaml b/functest/api/swagger/task.yaml
index abf68a0d..3375b906 100644
--- a/functest/api/swagger/task.yaml
+++ b/functest/api/swagger/task.yaml
@@ -1,38 +1,37 @@
+---
Get the result of the specified task
This api offers the interface to get the result of the specified task.
-
---
tags:
- - Tasks
+ - Tasks
parameters:
- - name: task_id
- description: task id
- in: path
- type: string
- required: true
+ - name: task_id
+ description: task id
+ in: path
+ type: string
+ required: true
definitions:
- Task:
- type: object
- properties:
- creds_name:
- $ref: '#/definitions/Result'
- Result:
- type: dict
+ Task:
+ type: object
+ properties:
+ creds_name:
+ $ref: '#/definitions/Result'
+ Result:
+ type: dict
responses:
- 200:
- description: Get the result of the specified task
- schema:
- $ref: '#/definitions/Task'
- examples:
- "result": {
- "case_name": "vping_ssh",
- "env_info": {
- "build_tag": null,
- "ci_loop": "weekly",
- "installer": "compass",
- "scenario": "os-nosdn-nofeature-noha" },
- "result": "PASS",
- "task_id": "1a9f3c5d-ce0b-4354-862e-dd08b26fc484"}
- "status": 2
-
+ 200:
+ description: Get the result of the specified task
+ schema:
+ $ref: '#/definitions/Task'
+ examples:
+ "result": {
+ "case_name": "vping_ssh",
+ "env_info": {
+ "build_tag": null,
+ "ci_loop": "weekly",
+ "installer": "compass",
+ "scenario": "os-nosdn-nofeature-noha"},
+ "result": "PASS",
+ "task_id": "1a9f3c5d-ce0b-4354-862e-dd08b26fc484"}
+ "status": 2