Merge changes I95d59c55,I9fc8955a
[vfc/nfvo/lcm.git] / lcm / swagger / vfc.others.swagger.json
1 {
2     "swagger": "2.0",
3     "info": {
4         "version": "1.0.0",
5         "title": "ONAP VFC Service Internal Rest API"
6     },
7     "basePath": "/api/nslcm/v1",
8     "paths": {
9         "/ns/{nsInstanceId}/postdeal": {
10             "post": {
11                 "tags": [
12                     "postdeal"
13                 ],
14                 "summary": "ns postdeal",
15                 "description": "",
16                 "operationId": "ns_postdeal",
17                 "consumes": [
18                     "application/json"
19                 ],
20                 "produces": [
21                     "application/json"
22                 ],
23                 "parameters": [
24                     {
25                         "required": true,
26                         "type": "string",
27                         "description": "",
28                         "name": "nsInstanceId",
29                         "in": "path"
30                     },
31                     {
32                         "in": "body",
33                         "name": "body",
34                         "description": "request param",
35                         "required": true,
36                         "schema": {
37                             "$ref": "#/definitions/NSInstPostDetailRequest"
38                         }
39                     }
40                 ],
41                 "responses": {
42                     "202": {
43                         "description": ""
44                     },
45                     "404": {
46                         "description": "URL not found"
47                     }
48                 }
49             }
50         },
51         "/jobs/{jobId}": {
52           "post": {
53             "tags": [
54               "job"
55             ],
56             "summary": "jobstatus",
57             "description": "",
58             "operationId": "post_jobprogress",
59             "parameters": [
60               {
61                 "required": true,
62                 "type": "string",
63                 "description": "",
64                 "name": "jobId",
65                 "in": "path"
66               },
67               {
68                 "in": "body",
69                 "name": "body",
70                 "description": "request param",
71                 "required": true,
72                 "schema": {
73                   "$ref": "#/definitions/JobProgressRequest"
74                 }
75               }
76             ],
77             "responses": {
78               "202": {
79                 "description": ""
80               },
81               "404": {
82                         "description": "URL not found"
83               }
84             }
85         }
86       }
87     },
88     "definitions": {
89
90         "NSInstPostDetailRequest": {
91             "type": "object",
92             "properties": {
93                 "status": {
94                     "type": "string"
95                 }
96             }
97         },
98         "JobProgressRequest": {
99           "type": "object",
100           "properties": {
101             "progress": {
102               "type": "string"
103             },
104             "desc": {
105               "type": "string"
106             },
107             "errcode": {
108               "type": "string"
109             }
110           }
111         }
112     }
113 }