apib2swagger 1.16.1 → 1.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/nodejs.yml +1 -1
- package/Dockerfile +1 -1
- package/README.md +1 -1
- package/package.json +1 -1
- package/src/requests.js +18 -3
- package/test/input/Issue-#72.md +43 -0
- package/test/output/01. Simplest API.json +2 -1
- package/test/output/01. Simplest API.ref.json +2 -1
- package/test/output/02. Resource and Actions.json +6 -2
- package/test/output/02. Resource and Actions.ref.json +6 -2
- package/test/output/03. Named Resource and Actions.json +6 -2
- package/test/output/03. Named Resource and Actions.ref.json +6 -2
- package/test/output/04. Grouping Resources.json +6 -2
- package/test/output/04. Grouping Resources.ref.json +6 -2
- package/test/output/05. Responses.json +6 -2
- package/test/output/05. Responses.ref.json +6 -2
- package/test/output/06. Requests.json +6 -1
- package/test/output/06. Requests.ref.json +6 -1
- package/test/output/07. Parameters.json +8 -2
- package/test/output/07. Parameters.ref.json +8 -2
- package/test/output/08. Attributes.json +2 -1
- package/test/output/08. Attributes.ref.json +2 -1
- package/test/output/09. Advanced Attributes.json +7 -2
- package/test/output/09. Advanced Attributes.ref.json +7 -2
- package/test/output/10. Data Structures.json +7 -2
- package/test/output/10. Data Structures.ref.json +7 -2
- package/test/output/11. Resource Model.json +6 -1
- package/test/output/11. Resource Model.ref.json +6 -1
- package/test/output/12. Advanced Action.json +6 -3
- package/test/output/12. Advanced Action.ref.json +6 -3
- package/test/output/13. Named Endpoints.json +6 -0
- package/test/output/13. Named Endpoints.ref.json +6 -0
- package/test/output/Attributes.json +3 -0
- package/test/output/Attributes.ref.json +3 -0
- package/test/output/Gist Fox API + Auth.json +25 -7
- package/test/output/Gist Fox API + Auth.ref.json +25 -7
- package/test/output/Issue-#15.json +6 -3
- package/test/output/Issue-#15.ref.json +6 -3
- package/test/output/Issue-#23.json +3 -0
- package/test/output/Issue-#23.ref.json +3 -0
- package/test/output/Issue-#26.json +5 -1
- package/test/output/Issue-#26.ref.json +5 -1
- package/test/output/Issue-#29.json +5 -1
- package/test/output/Issue-#29.ref.json +5 -1
- package/test/output/Issue-#33.json +2 -1
- package/test/output/Issue-#33.ref.json +2 -1
- package/test/output/Issue-#36.json +2 -1
- package/test/output/Issue-#36.ref.json +2 -1
- package/test/output/Issue-#38.bearer.json +3 -0
- package/test/output/Issue-#38.json +3 -0
- package/test/output/Issue-#38.ref.json +3 -0
- package/test/output/Issue-#49.json +4 -2
- package/test/output/Issue-#49.ref.json +4 -2
- package/test/output/Issue-#57.json +3 -0
- package/test/output/Issue-#57.ref.json +3 -0
- package/test/output/Issue-#72.json +170 -0
- package/test/output/Issue-#72.ref.json +168 -0
- package/test/output/Schema.json +9 -0
- package/test/output/Schema.ref.json +9 -0
- package/test/output/apiblueprint_uber.json +10 -5
- package/test/output/apiblueprint_uber.ref.json +10 -5
- package/test/output/apiblueprint_valid_simple.json +25 -7
- package/test/output/apiblueprint_valid_simple.ref.json +25 -7
- package/test/output/schema_without_body.json +52 -49
- package/test/output/schema_without_body.ref.json +52 -49
package/Dockerfile
CHANGED
package/README.md
CHANGED
package/package.json
CHANGED
package/src/requests.js
CHANGED
|
@@ -308,6 +308,8 @@ module.exports.processRequests = (operation, action, context) => {
|
|
|
308
308
|
|
|
309
309
|
let bodyExamples = {}
|
|
310
310
|
|
|
311
|
+
if (!openApi3) operation.consumes = []
|
|
312
|
+
|
|
311
313
|
for (var j = 0; j < action.examples.length; j++) {
|
|
312
314
|
var example = action.examples[j];
|
|
313
315
|
for (var l = 0; l < example.requests.length; l++) {
|
|
@@ -320,8 +322,14 @@ module.exports.processRequests = (operation, action, context) => {
|
|
|
320
322
|
operation.parameters = mergeHeaders(headers, operation.parameters, options)
|
|
321
323
|
}
|
|
322
324
|
|
|
325
|
+
var contentType = 'application/json'
|
|
323
326
|
const contentTypeHeader = request.headers.find((h) => h.name === 'Content-Type')
|
|
324
|
-
|
|
327
|
+
if (contentTypeHeader) {
|
|
328
|
+
contentType = contentTypeHeader.value
|
|
329
|
+
if (!openApi3 && !operation.consumes.includes(contentType)) {
|
|
330
|
+
operation.consumes.push(contentType)
|
|
331
|
+
}
|
|
332
|
+
}
|
|
325
333
|
|
|
326
334
|
if (request.body && openApi3) {
|
|
327
335
|
bodyExamples = buildBodyExamples(request.body, bodyExamples, contentType)
|
|
@@ -346,12 +354,19 @@ module.exports.processRequests = (operation, action, context) => {
|
|
|
346
354
|
}
|
|
347
355
|
}
|
|
348
356
|
}
|
|
349
|
-
if (openApi3 && (schema.length || Object.keys(bodyExamples).length)){
|
|
357
|
+
if (openApi3 && (schema.length || Object.keys(bodyExamples).length)) {
|
|
350
358
|
operation.requestBody = { content: {} }
|
|
351
359
|
if (Object.keys(bodyExamples).length) {
|
|
352
360
|
operation.requestBody.content = bodyExamples
|
|
353
361
|
}
|
|
354
362
|
}
|
|
355
|
-
|
|
363
|
+
if (!openApi3) {
|
|
364
|
+
for (var s of schema) {
|
|
365
|
+
if (!operation.consumes.includes(s.contentType)) {
|
|
366
|
+
operation.consumes.push(s.contentType)
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
|
|
356
371
|
return openApi3 ? setOpenApiRequestSchema(operation, schema) : setSwaggerRequestSchema(operation, schema)
|
|
357
372
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
### Create a user [POST /api/scim/v2/Users]
|
|
2
|
+
|
|
3
|
+
+ Request
|
|
4
|
+
+ Headers
|
|
5
|
+
|
|
6
|
+
Content-Type: application/scim+json
|
|
7
|
+
Authorization: Bearer token
|
|
8
|
+
|
|
9
|
+
+ Body
|
|
10
|
+
|
|
11
|
+
{
|
|
12
|
+
"schemas": ["urn:ietf:params:scim:schemas:core:2.0:User"],
|
|
13
|
+
"userName": "fredsmith",
|
|
14
|
+
"name": {
|
|
15
|
+
"givenName": "Fred",
|
|
16
|
+
"familyName": "Smith"
|
|
17
|
+
},
|
|
18
|
+
"emails": [
|
|
19
|
+
{"primary": true, "value": "fred@example.com", "type": "work"}
|
|
20
|
+
],
|
|
21
|
+
"displayName": "Fred Smith",
|
|
22
|
+
"externalId": "fred-external-id",
|
|
23
|
+
"active": true
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
+ Response 201 (application/scim+json)
|
|
27
|
+
|
|
28
|
+
+ Attributes (ExistingUser)
|
|
29
|
+
|
|
30
|
+
### Create a user 2 [POST /api2/scim/v2/Users]
|
|
31
|
+
|
|
32
|
+
+ Request
|
|
33
|
+
+ Headers
|
|
34
|
+
|
|
35
|
+
Content-Type: application/scim+json
|
|
36
|
+
Authorization: Bearer token
|
|
37
|
+
|
|
38
|
+
+ Response 201 (application/scim+json)
|
|
39
|
+
|
|
40
|
+
+ Attributes (ExistingUser)
|
|
41
|
+
|
|
42
|
+
# Data Structures
|
|
43
|
+
## ExistingUser
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
"parameters": [],
|
|
25
25
|
"produces": [
|
|
26
26
|
"text/plain"
|
|
27
|
-
]
|
|
27
|
+
],
|
|
28
|
+
"consumes": []
|
|
28
29
|
},
|
|
29
30
|
"put": {
|
|
30
31
|
"responses": {
|
|
@@ -38,7 +39,10 @@
|
|
|
38
39
|
"operationId": "",
|
|
39
40
|
"description": "OK, let's add another action. This time to put new data to our resource (essentially an update action). We will need to send something in a [request](http://www.w3.org/TR/di-gloss/#def-http-request) and then send a response back confirming the posting was a success (HTTP Status Code 204 ~ Resource updated successfully, no content is returned).",
|
|
40
41
|
"tags": [],
|
|
41
|
-
"parameters": []
|
|
42
|
+
"parameters": [],
|
|
43
|
+
"consumes": [
|
|
44
|
+
"text/plain"
|
|
45
|
+
]
|
|
42
46
|
}
|
|
43
47
|
}
|
|
44
48
|
},
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
"parameters": [],
|
|
25
25
|
"produces": [
|
|
26
26
|
"text/plain"
|
|
27
|
-
]
|
|
27
|
+
],
|
|
28
|
+
"consumes": []
|
|
28
29
|
},
|
|
29
30
|
"put": {
|
|
30
31
|
"responses": {
|
|
@@ -38,7 +39,10 @@
|
|
|
38
39
|
"operationId": "",
|
|
39
40
|
"description": "OK, let's add another action. This time to put new data to our resource (essentially an update action). We will need to send something in a [request](http://www.w3.org/TR/di-gloss/#def-http-request) and then send a response back confirming the posting was a success (HTTP Status Code 204 ~ Resource updated successfully, no content is returned).",
|
|
40
41
|
"tags": [],
|
|
41
|
-
"parameters": []
|
|
42
|
+
"parameters": [],
|
|
43
|
+
"consumes": [
|
|
44
|
+
"text/plain"
|
|
45
|
+
]
|
|
42
46
|
}
|
|
43
47
|
}
|
|
44
48
|
},
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
"parameters": [],
|
|
25
25
|
"produces": [
|
|
26
26
|
"text/plain"
|
|
27
|
-
]
|
|
27
|
+
],
|
|
28
|
+
"consumes": []
|
|
28
29
|
},
|
|
29
30
|
"put": {
|
|
30
31
|
"responses": {
|
|
@@ -38,7 +39,10 @@
|
|
|
38
39
|
"operationId": "Update a Message",
|
|
39
40
|
"description": "`Update a message` - nice and simple naming is the best way to go.",
|
|
40
41
|
"tags": [],
|
|
41
|
-
"parameters": []
|
|
42
|
+
"parameters": [],
|
|
43
|
+
"consumes": [
|
|
44
|
+
"text/plain"
|
|
45
|
+
]
|
|
42
46
|
}
|
|
43
47
|
}
|
|
44
48
|
},
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
"parameters": [],
|
|
25
25
|
"produces": [
|
|
26
26
|
"text/plain"
|
|
27
|
-
]
|
|
27
|
+
],
|
|
28
|
+
"consumes": []
|
|
28
29
|
},
|
|
29
30
|
"put": {
|
|
30
31
|
"responses": {
|
|
@@ -38,7 +39,10 @@
|
|
|
38
39
|
"operationId": "Update a Message",
|
|
39
40
|
"description": "`Update a message` - nice and simple naming is the best way to go.",
|
|
40
41
|
"tags": [],
|
|
41
|
-
"parameters": []
|
|
42
|
+
"parameters": [],
|
|
43
|
+
"consumes": [
|
|
44
|
+
"text/plain"
|
|
45
|
+
]
|
|
42
46
|
}
|
|
43
47
|
}
|
|
44
48
|
},
|
|
@@ -26,7 +26,8 @@
|
|
|
26
26
|
"parameters": [],
|
|
27
27
|
"produces": [
|
|
28
28
|
"text/plain"
|
|
29
|
-
]
|
|
29
|
+
],
|
|
30
|
+
"consumes": []
|
|
30
31
|
},
|
|
31
32
|
"put": {
|
|
32
33
|
"responses": {
|
|
@@ -42,7 +43,10 @@
|
|
|
42
43
|
"tags": [
|
|
43
44
|
"Messages"
|
|
44
45
|
],
|
|
45
|
-
"parameters": []
|
|
46
|
+
"parameters": [],
|
|
47
|
+
"consumes": [
|
|
48
|
+
"text/plain"
|
|
49
|
+
]
|
|
46
50
|
}
|
|
47
51
|
}
|
|
48
52
|
},
|
|
@@ -26,7 +26,8 @@
|
|
|
26
26
|
"parameters": [],
|
|
27
27
|
"produces": [
|
|
28
28
|
"text/plain"
|
|
29
|
-
]
|
|
29
|
+
],
|
|
30
|
+
"consumes": []
|
|
30
31
|
},
|
|
31
32
|
"put": {
|
|
32
33
|
"responses": {
|
|
@@ -42,7 +43,10 @@
|
|
|
42
43
|
"tags": [
|
|
43
44
|
"Messages"
|
|
44
45
|
],
|
|
45
|
-
"parameters": []
|
|
46
|
+
"parameters": [],
|
|
47
|
+
"consumes": [
|
|
48
|
+
"text/plain"
|
|
49
|
+
]
|
|
46
50
|
}
|
|
47
51
|
}
|
|
48
52
|
},
|
|
@@ -43,7 +43,8 @@
|
|
|
43
43
|
"parameters": [],
|
|
44
44
|
"produces": [
|
|
45
45
|
"application/json"
|
|
46
|
-
]
|
|
46
|
+
],
|
|
47
|
+
"consumes": []
|
|
47
48
|
},
|
|
48
49
|
"put": {
|
|
49
50
|
"responses": {
|
|
@@ -59,7 +60,10 @@
|
|
|
59
60
|
"tags": [
|
|
60
61
|
"Messages"
|
|
61
62
|
],
|
|
62
|
-
"parameters": []
|
|
63
|
+
"parameters": [],
|
|
64
|
+
"consumes": [
|
|
65
|
+
"text/plain"
|
|
66
|
+
]
|
|
63
67
|
}
|
|
64
68
|
}
|
|
65
69
|
},
|
|
@@ -43,7 +43,8 @@
|
|
|
43
43
|
"parameters": [],
|
|
44
44
|
"produces": [
|
|
45
45
|
"application/json"
|
|
46
|
-
]
|
|
46
|
+
],
|
|
47
|
+
"consumes": []
|
|
47
48
|
},
|
|
48
49
|
"put": {
|
|
49
50
|
"responses": {
|
|
@@ -59,7 +60,10 @@
|
|
|
59
60
|
"tags": [
|
|
60
61
|
"Messages"
|
|
61
62
|
],
|
|
62
|
-
"parameters": []
|
|
63
|
+
"parameters": [],
|
|
64
|
+
"consumes": [
|
|
65
|
+
"text/plain"
|
|
66
|
+
]
|
|
63
67
|
}
|
|
64
68
|
}
|
|
65
69
|
},
|
|
@@ -65,7 +65,8 @@
|
|
|
65
65
|
],
|
|
66
66
|
"produces": [
|
|
67
67
|
"application/json"
|
|
68
|
-
]
|
|
68
|
+
],
|
|
69
|
+
"consumes": []
|
|
69
70
|
},
|
|
70
71
|
"put": {
|
|
71
72
|
"responses": {
|
|
@@ -105,6 +106,10 @@
|
|
|
105
106
|
}
|
|
106
107
|
}
|
|
107
108
|
}
|
|
109
|
+
],
|
|
110
|
+
"consumes": [
|
|
111
|
+
"text/plain",
|
|
112
|
+
"application/json"
|
|
108
113
|
]
|
|
109
114
|
}
|
|
110
115
|
},
|
|
@@ -182,7 +187,8 @@
|
|
|
182
187
|
],
|
|
183
188
|
"produces": [
|
|
184
189
|
"application/json"
|
|
185
|
-
]
|
|
190
|
+
],
|
|
191
|
+
"consumes": []
|
|
186
192
|
}
|
|
187
193
|
}
|
|
188
194
|
},
|
|
@@ -65,7 +65,8 @@
|
|
|
65
65
|
],
|
|
66
66
|
"produces": [
|
|
67
67
|
"application/json"
|
|
68
|
-
]
|
|
68
|
+
],
|
|
69
|
+
"consumes": []
|
|
69
70
|
},
|
|
70
71
|
"put": {
|
|
71
72
|
"responses": {
|
|
@@ -105,6 +106,10 @@
|
|
|
105
106
|
}
|
|
106
107
|
}
|
|
107
108
|
}
|
|
109
|
+
],
|
|
110
|
+
"consumes": [
|
|
111
|
+
"text/plain",
|
|
112
|
+
"application/json"
|
|
108
113
|
]
|
|
109
114
|
}
|
|
110
115
|
},
|
|
@@ -182,7 +187,8 @@
|
|
|
182
187
|
],
|
|
183
188
|
"produces": [
|
|
184
189
|
"application/json"
|
|
185
|
-
]
|
|
190
|
+
],
|
|
191
|
+
"consumes": []
|
|
186
192
|
}
|
|
187
193
|
}
|
|
188
194
|
},
|
|
@@ -59,7 +59,8 @@
|
|
|
59
59
|
],
|
|
60
60
|
"produces": [
|
|
61
61
|
"application/json"
|
|
62
|
-
]
|
|
62
|
+
],
|
|
63
|
+
"consumes": []
|
|
63
64
|
}
|
|
64
65
|
},
|
|
65
66
|
"/coupons": {
|
|
@@ -102,7 +103,8 @@
|
|
|
102
103
|
],
|
|
103
104
|
"produces": [
|
|
104
105
|
"application/json"
|
|
105
|
-
]
|
|
106
|
+
],
|
|
107
|
+
"consumes": []
|
|
106
108
|
},
|
|
107
109
|
"post": {
|
|
108
110
|
"responses": {
|
|
@@ -165,6 +167,9 @@
|
|
|
165
167
|
],
|
|
166
168
|
"produces": [
|
|
167
169
|
"application/json"
|
|
170
|
+
],
|
|
171
|
+
"consumes": [
|
|
172
|
+
"application/json"
|
|
168
173
|
]
|
|
169
174
|
}
|
|
170
175
|
}
|
|
@@ -42,7 +42,8 @@
|
|
|
42
42
|
],
|
|
43
43
|
"produces": [
|
|
44
44
|
"application/json"
|
|
45
|
-
]
|
|
45
|
+
],
|
|
46
|
+
"consumes": []
|
|
46
47
|
}
|
|
47
48
|
},
|
|
48
49
|
"/coupons": {
|
|
@@ -84,7 +85,8 @@
|
|
|
84
85
|
],
|
|
85
86
|
"produces": [
|
|
86
87
|
"application/json"
|
|
87
|
-
]
|
|
88
|
+
],
|
|
89
|
+
"consumes": []
|
|
88
90
|
},
|
|
89
91
|
"post": {
|
|
90
92
|
"responses": {
|
|
@@ -130,6 +132,9 @@
|
|
|
130
132
|
],
|
|
131
133
|
"produces": [
|
|
132
134
|
"application/json"
|
|
135
|
+
],
|
|
136
|
+
"consumes": [
|
|
137
|
+
"application/json"
|
|
133
138
|
]
|
|
134
139
|
}
|
|
135
140
|
}
|
|
@@ -59,7 +59,8 @@
|
|
|
59
59
|
],
|
|
60
60
|
"produces": [
|
|
61
61
|
"application/json"
|
|
62
|
-
]
|
|
62
|
+
],
|
|
63
|
+
"consumes": []
|
|
63
64
|
}
|
|
64
65
|
},
|
|
65
66
|
"/coupons": {
|
|
@@ -102,7 +103,8 @@
|
|
|
102
103
|
],
|
|
103
104
|
"produces": [
|
|
104
105
|
"application/json"
|
|
105
|
-
]
|
|
106
|
+
],
|
|
107
|
+
"consumes": []
|
|
106
108
|
},
|
|
107
109
|
"post": {
|
|
108
110
|
"responses": {
|
|
@@ -156,6 +158,9 @@
|
|
|
156
158
|
],
|
|
157
159
|
"produces": [
|
|
158
160
|
"application/json"
|
|
161
|
+
],
|
|
162
|
+
"consumes": [
|
|
163
|
+
"application/json"
|
|
159
164
|
]
|
|
160
165
|
}
|
|
161
166
|
}
|
|
@@ -42,7 +42,8 @@
|
|
|
42
42
|
],
|
|
43
43
|
"produces": [
|
|
44
44
|
"application/json"
|
|
45
|
-
]
|
|
45
|
+
],
|
|
46
|
+
"consumes": []
|
|
46
47
|
}
|
|
47
48
|
},
|
|
48
49
|
"/coupons": {
|
|
@@ -84,7 +85,8 @@
|
|
|
84
85
|
],
|
|
85
86
|
"produces": [
|
|
86
87
|
"application/json"
|
|
87
|
-
]
|
|
88
|
+
],
|
|
89
|
+
"consumes": []
|
|
88
90
|
},
|
|
89
91
|
"post": {
|
|
90
92
|
"responses": {
|
|
@@ -121,6 +123,9 @@
|
|
|
121
123
|
],
|
|
122
124
|
"produces": [
|
|
123
125
|
"application/json"
|
|
126
|
+
],
|
|
127
|
+
"consumes": [
|
|
128
|
+
"application/json"
|
|
124
129
|
]
|
|
125
130
|
}
|
|
126
131
|
}
|
|
@@ -46,7 +46,8 @@
|
|
|
46
46
|
"parameters": [],
|
|
47
47
|
"produces": [
|
|
48
48
|
"application/vnd.siren+json"
|
|
49
|
-
]
|
|
49
|
+
],
|
|
50
|
+
"consumes": []
|
|
50
51
|
},
|
|
51
52
|
"put": {
|
|
52
53
|
"responses": {
|
|
@@ -78,6 +79,10 @@
|
|
|
78
79
|
}
|
|
79
80
|
}
|
|
80
81
|
}
|
|
82
|
+
],
|
|
83
|
+
"consumes": [
|
|
84
|
+
"text/plain",
|
|
85
|
+
"application/json"
|
|
81
86
|
]
|
|
82
87
|
}
|
|
83
88
|
}
|
|
@@ -46,7 +46,8 @@
|
|
|
46
46
|
"parameters": [],
|
|
47
47
|
"produces": [
|
|
48
48
|
"application/vnd.siren+json"
|
|
49
|
-
]
|
|
49
|
+
],
|
|
50
|
+
"consumes": []
|
|
50
51
|
},
|
|
51
52
|
"put": {
|
|
52
53
|
"responses": {
|
|
@@ -78,6 +79,10 @@
|
|
|
78
79
|
}
|
|
79
80
|
}
|
|
80
81
|
}
|
|
82
|
+
],
|
|
83
|
+
"consumes": [
|
|
84
|
+
"text/plain",
|
|
85
|
+
"application/json"
|
|
81
86
|
]
|
|
82
87
|
}
|
|
83
88
|
}
|
|
@@ -92,7 +92,8 @@
|
|
|
92
92
|
],
|
|
93
93
|
"produces": [
|
|
94
94
|
"application/json"
|
|
95
|
-
]
|
|
95
|
+
],
|
|
96
|
+
"consumes": []
|
|
96
97
|
}
|
|
97
98
|
},
|
|
98
99
|
"/task/{id}": {
|
|
@@ -149,7 +150,8 @@
|
|
|
149
150
|
],
|
|
150
151
|
"produces": [
|
|
151
152
|
"application/json"
|
|
152
|
-
]
|
|
153
|
+
],
|
|
154
|
+
"consumes": []
|
|
153
155
|
},
|
|
154
156
|
"delete": {
|
|
155
157
|
"responses": {
|
|
@@ -171,7 +173,8 @@
|
|
|
171
173
|
"required": true,
|
|
172
174
|
"type": "string"
|
|
173
175
|
}
|
|
174
|
-
]
|
|
176
|
+
],
|
|
177
|
+
"consumes": []
|
|
175
178
|
}
|
|
176
179
|
}
|
|
177
180
|
},
|
|
@@ -92,7 +92,8 @@
|
|
|
92
92
|
],
|
|
93
93
|
"produces": [
|
|
94
94
|
"application/json"
|
|
95
|
-
]
|
|
95
|
+
],
|
|
96
|
+
"consumes": []
|
|
96
97
|
}
|
|
97
98
|
},
|
|
98
99
|
"/task/{id}": {
|
|
@@ -149,7 +150,8 @@
|
|
|
149
150
|
],
|
|
150
151
|
"produces": [
|
|
151
152
|
"application/json"
|
|
152
|
-
]
|
|
153
|
+
],
|
|
154
|
+
"consumes": []
|
|
153
155
|
},
|
|
154
156
|
"delete": {
|
|
155
157
|
"responses": {
|
|
@@ -171,7 +173,8 @@
|
|
|
171
173
|
"required": true,
|
|
172
174
|
"type": "string"
|
|
173
175
|
}
|
|
174
|
-
]
|
|
176
|
+
],
|
|
177
|
+
"consumes": []
|
|
175
178
|
}
|
|
176
179
|
}
|
|
177
180
|
},
|