From: fengyuanxing Date: Fri, 9 Feb 2018 02:33:40 +0000 (+0800) Subject: Add post job swagger X-Git-Tag: v1.1.0~46 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F57%2F30957%2F1;p=vfc%2Fnfvo%2Fcatalog.git Add post job swagger Change-Id: I2906e93b606a38a9df047f73319879546cf7a596 Issue-ID: VFC-750 Signed-off-by: fengyuanxing --- diff --git a/catalog/swagger/vfc.catalog.swagger.json b/catalog/swagger/vfc.catalog.swagger.json index 6f8cb769..926457bf 100644 --- a/catalog/swagger/vfc.catalog.swagger.json +++ b/catalog/swagger/vfc.catalog.swagger.json @@ -416,6 +416,40 @@ } } } + }, + "post": { + "tags": [ + "job" + ], + "summary": "Update Job Status", + "description": "", + "operationId": "post_jobstatus", + "parameters": [ + { + "required": true, + "type": "string", + "description": "job Id", + "name": "jobId", + "in": "path" + }, + { + "required": true, + "schema": { + "$ref": "#/definitions/PostJobRequest" + }, + "description": "job status", + "name": "responseId", + "in": "body" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/JobDetailInfo" + } + } + } } } }, @@ -712,6 +746,20 @@ } } }, + "PostJobRequest": { + "type": "object", + "properties": { + "progress": { + "type": "string" + }, + "desc": { + "type": "string" + }, + "errcode": { + "type": "string" + } + } + }, "JobDetailInfo":{ "type": "object", "properties": {