apib2swagger 1.10.0 → 1.14.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.
Files changed (118) hide show
  1. package/.github/workflows/codeql-analysis.yml +71 -0
  2. package/.github/workflows/docker-publish.yml +70 -0
  3. package/.github/workflows/nodejs.yml +26 -0
  4. package/.travis.yml +2 -3
  5. package/Dockerfile +5 -0
  6. package/LICENSE +0 -0
  7. package/README.md +31 -10
  8. package/bin/apib2swagger.js +44 -18
  9. package/index.js +82 -366
  10. package/package.json +6 -4
  11. package/src/escape_json_pointer.js +0 -0
  12. package/src/mson_to_json_schema.js +13 -8
  13. package/src/parameters.js +111 -0
  14. package/src/requests.js +344 -0
  15. package/src/responses.js +181 -0
  16. package/src/util.js +127 -0
  17. package/test/input/Attributes.md +0 -0
  18. package/test/input/Issue-#15.md +0 -0
  19. package/test/input/Issue-#22.md +0 -0
  20. package/test/input/Issue-#23.md +0 -0
  21. package/test/input/Issue-#26.md +0 -0
  22. package/test/input/Issue-#29.md +0 -0
  23. package/test/input/Issue-#33.md +0 -0
  24. package/test/input/Issue-#35.md +0 -0
  25. package/test/input/Issue-#36.md +0 -0
  26. package/test/input/Issue-#38.md +0 -0
  27. package/test/input/Issue-#49.md +24 -0
  28. package/test/input/OpenAPI3_attributes.md +36 -0
  29. package/test/input/OpenAPI3_headers.md +74 -0
  30. package/test/input/OpenAPI3_includes.md +22 -0
  31. package/test/input/OpenAPI3_requests.md +162 -0
  32. package/test/input/OpenAPI3_responses.md +177 -0
  33. package/test/input/Schema.md +0 -0
  34. package/test/input/apiblueprint_uber.md +0 -0
  35. package/test/input/apiblueprint_valid_simple.md +0 -0
  36. package/test/input/includes/resource-request-body-2.json +3 -0
  37. package/test/input/includes/resource-request-body.json +3 -0
  38. package/test/input/includes/resource-request-schema.json +9 -0
  39. package/test/input/includes/resource-response-body-2.json +3 -0
  40. package/test/input/includes/resource-response-body.json +3 -0
  41. package/test/input/includes/resource-response-schema.json +9 -0
  42. package/test/input/schema_without_body.md +17 -0
  43. package/test/meta_schema.json +0 -0
  44. package/test/openAPI_30_schema.json +1662 -0
  45. package/test/output/01. Simplest API.json +1 -0
  46. package/test/output/01. Simplest API.ref.json +1 -0
  47. package/test/output/02. Resource and Actions.json +2 -0
  48. package/test/output/02. Resource and Actions.ref.json +2 -0
  49. package/test/output/03. Named Resource and Actions.json +2 -0
  50. package/test/output/03. Named Resource and Actions.ref.json +2 -0
  51. package/test/output/04. Grouping Resources.json +2 -0
  52. package/test/output/04. Grouping Resources.ref.json +2 -0
  53. package/test/output/05. Responses.json +2 -0
  54. package/test/output/05. Responses.ref.json +2 -0
  55. package/test/output/06. Requests.json +2 -0
  56. package/test/output/06. Requests.ref.json +2 -0
  57. package/test/output/07. Parameters.json +3 -0
  58. package/test/output/07. Parameters.ref.json +3 -0
  59. package/test/output/08. Attributes.json +1 -0
  60. package/test/output/08. Attributes.ref.json +1 -0
  61. package/test/output/09. Advanced Attributes.json +3 -0
  62. package/test/output/09. Advanced Attributes.ref.json +3 -0
  63. package/test/output/10. Data Structures.json +3 -0
  64. package/test/output/10. Data Structures.ref.json +3 -0
  65. package/test/output/11. Resource Model.json +2 -0
  66. package/test/output/11. Resource Model.ref.json +2 -0
  67. package/test/output/12. Advanced Action.json +3 -0
  68. package/test/output/12. Advanced Action.ref.json +3 -0
  69. package/test/output/13. Named Endpoints.json +2 -0
  70. package/test/output/13. Named Endpoints.ref.json +2 -0
  71. package/test/output/Attributes.json +1 -0
  72. package/test/output/Attributes.ref.json +1 -0
  73. package/test/output/Gist Fox API + Auth.json +12 -0
  74. package/test/output/Gist Fox API + Auth.ref.json +12 -0
  75. package/test/output/Issue-#15.json +3 -0
  76. package/test/output/Issue-#15.ref.json +3 -0
  77. package/test/output/Issue-#22.json +0 -0
  78. package/test/output/Issue-#22.ref.json +0 -0
  79. package/test/output/Issue-#23.json +1 -0
  80. package/test/output/Issue-#23.ref.json +1 -0
  81. package/test/output/Issue-#26.json +2 -0
  82. package/test/output/Issue-#26.ref.json +2 -0
  83. package/test/output/Issue-#29.json +2 -0
  84. package/test/output/Issue-#29.ref.json +2 -0
  85. package/test/output/Issue-#33.json +9 -8
  86. package/test/output/Issue-#33.ref.json +9 -8
  87. package/test/output/Issue-#35.json +0 -0
  88. package/test/output/Issue-#35.ref.json +0 -0
  89. package/test/output/Issue-#36.json +1 -0
  90. package/test/output/Issue-#36.ref.json +1 -0
  91. package/test/output/Issue-#38.bearer.json +53 -52
  92. package/test/output/Issue-#38.json +1 -0
  93. package/test/output/Issue-#38.ref.json +1 -0
  94. package/test/output/Issue-#49.json +141 -0
  95. package/test/output/Issue-#49.ref.json +126 -0
  96. package/test/output/OpenAPI3_attributes.json +199 -0
  97. package/test/output/OpenAPI3_attributes.ref.json +173 -0
  98. package/test/output/OpenAPI3_headers.json +169 -0
  99. package/test/output/OpenAPI3_headers.ref.json +169 -0
  100. package/test/output/OpenAPI3_includes.json +66 -0
  101. package/test/output/OpenAPI3_includes.ref.json +66 -0
  102. package/test/output/OpenAPI3_requests.json +326 -0
  103. package/test/output/OpenAPI3_requests.ref.json +321 -0
  104. package/test/output/OpenAPI3_responses.json +255 -0
  105. package/test/output/OpenAPI3_responses.ref.json +245 -0
  106. package/test/output/Schema.json +3 -0
  107. package/test/output/Schema.ref.json +3 -0
  108. package/test/output/apiblueprint_uber.json +5 -0
  109. package/test/output/apiblueprint_uber.ref.json +5 -0
  110. package/test/output/apiblueprint_valid_simple.json +12 -0
  111. package/test/output/apiblueprint_valid_simple.ref.json +12 -0
  112. package/test/output/schema_without_body.json +52 -0
  113. package/test/output/schema_without_body.ref.json +52 -0
  114. package/test/swagger_20_schema.json +0 -0
  115. package/test/test.js +31 -15
  116. package/test/util.test.js +151 -0
  117. package/.npmignore +0 -35
  118. package/package-lock.json +0 -2320
@@ -0,0 +1,245 @@
1
+ {
2
+ "openapi": "3.0.3",
3
+ "info": {
4
+ "title": "",
5
+ "version": "1.0.0",
6
+ "description": ""
7
+ },
8
+ "servers": [
9
+ {
10
+ "url": "https://www.testhost.com"
11
+ }
12
+ ],
13
+ "paths": {
14
+ "/some/resource": {
15
+ "get": {
16
+ "responses": {
17
+ "200": {
18
+ "description": "Array schema",
19
+ "headers": {
20
+ "X-My-Message-Header": {
21
+ "schema": {
22
+ "type": "string"
23
+ }
24
+ }
25
+ },
26
+ "content": {
27
+ "application/json": {
28
+ "schema": {
29
+ "oneOf": [
30
+ {
31
+ "type": "object",
32
+ "properties": {
33
+ "message": {
34
+ "type": "string",
35
+ "description": "This is the message description "
36
+ }
37
+ }
38
+ },
39
+ {
40
+ "type": "object",
41
+ "properties": {
42
+ "other": {
43
+ "type": "string",
44
+ "description": "This is the message description "
45
+ }
46
+ }
47
+ },
48
+ {
49
+ "type": "array",
50
+ "items": {
51
+ "type": "object",
52
+ "properties": {
53
+ "message": {
54
+ "type": "string",
55
+ "description": "This is the message description "
56
+ }
57
+ }
58
+ }
59
+ }
60
+ ]
61
+ },
62
+ "examples": {
63
+ "example1": {
64
+ "value": {
65
+ "message": "Hello World!"
66
+ }
67
+ },
68
+ "example2": {
69
+ "value": {
70
+ "other": "Hello World!"
71
+ }
72
+ },
73
+ "example3": {
74
+ "value": {
75
+ "other": "Hello World!"
76
+ }
77
+ },
78
+ "example4": {
79
+ "value": [
80
+ {
81
+ "message": "Hello World!"
82
+ }
83
+ ]
84
+ }
85
+ }
86
+ }
87
+ }
88
+ },
89
+ "400": {
90
+ "description": "Bad Request",
91
+ "headers": {},
92
+ "content": {
93
+ "application/json": {
94
+ "example": {
95
+ "message": "Invalid data"
96
+ }
97
+ }
98
+ }
99
+ }
100
+ },
101
+ "summary": "Some resource",
102
+ "operationId": "Some resource",
103
+ "description": "",
104
+ "tags": [],
105
+ "parameters": []
106
+ },
107
+ "post": {
108
+ "responses": {
109
+ "200": {
110
+ "description": "OK",
111
+ "headers": {
112
+ "X-My-Message-Header": {
113
+ "schema": {
114
+ "type": "string"
115
+ }
116
+ }
117
+ },
118
+ "content": {
119
+ "application/json": {
120
+ "schema": {
121
+ "type": "object",
122
+ "properties": {
123
+ "message": {
124
+ "type": "string",
125
+ "description": "This is the message description "
126
+ }
127
+ }
128
+ },
129
+ "examples": {
130
+ "example1": {
131
+ "value": {
132
+ "message": "Hello World!"
133
+ }
134
+ },
135
+ "example2": {
136
+ "value": {
137
+ "message": "Hello World!"
138
+ }
139
+ }
140
+ }
141
+ }
142
+ }
143
+ }
144
+ },
145
+ "summary": "Some resource",
146
+ "operationId": "Some resource",
147
+ "description": "",
148
+ "tags": [],
149
+ "parameters": []
150
+ }
151
+ },
152
+ "/test/attributes": {
153
+ "get": {
154
+ "responses": {
155
+ "200": {
156
+ "description": "OK",
157
+ "headers": {},
158
+ "content": {
159
+ "application/json": {
160
+ "schema": {
161
+ "oneOf": [
162
+ {
163
+ "$ref": "#/components/schemas/Message"
164
+ },
165
+ {
166
+ "$ref": "#/components/schemas/OtherMessage"
167
+ }
168
+ ]
169
+ },
170
+ "examples": {
171
+ "example1": {
172
+ "value": {
173
+ "message": "Hello World!"
174
+ }
175
+ },
176
+ "example2": {
177
+ "value": {
178
+ "message": "Hello World2"
179
+ }
180
+ },
181
+ "example3": {
182
+ "value": {
183
+ "otherMessage": "Hello World!"
184
+ }
185
+ }
186
+ }
187
+ }
188
+ }
189
+ }
190
+ },
191
+ "summary": "Some resource",
192
+ "operationId": "Some resource",
193
+ "description": "",
194
+ "tags": [],
195
+ "parameters": []
196
+ }
197
+ },
198
+ "/message": {
199
+ "get": {
200
+ "responses": {
201
+ "200": {
202
+ "description": "Unparsable schema should fall back to Attributes",
203
+ "headers": {},
204
+ "content": {
205
+ "application/json": {
206
+ "schema": {
207
+ "$ref": "#/components/schemas/Message"
208
+ },
209
+ "example": {
210
+ "message": ""
211
+ }
212
+ }
213
+ }
214
+ }
215
+ },
216
+ "summary": "Message",
217
+ "operationId": "Message",
218
+ "description": "",
219
+ "tags": [],
220
+ "parameters": []
221
+ }
222
+ }
223
+ },
224
+ "components": {
225
+ "schemas":{
226
+ "Message": {
227
+ "type": "object",
228
+ "properties": {
229
+ "message": {
230
+ "type": "string"
231
+ }
232
+ }
233
+ },
234
+ "OtherMessage": {
235
+ "type": "object",
236
+ "properties": {
237
+ "otherMessage": {
238
+ "type": "string"
239
+ }
240
+ }
241
+ }
242
+ }
243
+ },
244
+ "tags": []
245
+ }
@@ -24,6 +24,7 @@
24
24
  }
25
25
  },
26
26
  "summary": "Some resource",
27
+ "operationId": "Some resource",
27
28
  "description": "",
28
29
  "tags": [],
29
30
  "parameters": [
@@ -66,6 +67,7 @@
66
67
  }
67
68
  },
68
69
  "summary": "",
70
+ "operationId": "",
69
71
  "description": "",
70
72
  "tags": [],
71
73
  "parameters": [
@@ -101,6 +103,7 @@
101
103
  }
102
104
  },
103
105
  "summary": "",
106
+ "operationId": "",
104
107
  "description": "",
105
108
  "tags": [],
106
109
  "parameters": [
@@ -24,6 +24,7 @@
24
24
  }
25
25
  },
26
26
  "summary": "Some resource",
27
+ "operationId": "Some resource",
27
28
  "description": "",
28
29
  "tags": [],
29
30
  "parameters": [
@@ -61,6 +62,7 @@
61
62
  }
62
63
  },
63
64
  "summary": "",
65
+ "operationId": "",
64
66
  "description": "",
65
67
  "tags": [],
66
68
  "parameters": [
@@ -96,6 +98,7 @@
96
98
  }
97
99
  },
98
100
  "summary": "",
101
+ "operationId": "",
99
102
  "description": "",
100
103
  "tags": [],
101
104
  "parameters": [
@@ -44,6 +44,7 @@
44
44
  }
45
45
  },
46
46
  "summary": "Product Types",
47
+ "operationId": "Product Types",
47
48
  "description": "The Products endpoint returns information about the *Uber* products\noffered at a given location. The response includes the display name\nand other details about each product, and lists the products in the\nproper display order.",
48
49
  "tags": [
49
50
  "Products"
@@ -116,6 +117,7 @@
116
117
  }
117
118
  },
118
119
  "summary": "Price Estimates",
120
+ "operationId": "Price Estimates",
119
121
  "description": "The Price Estimates endpoint returns an estimated price range\nfor each product offered at a given location. The price estimate is\nprovided as a formatted string with the full price range and the localized\ncurrency symbol.<br><br>The response also includes low and high estimates,\nand the [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217) currency code for\nsituations requiring currency conversion. When surge is active for a particular\nproduct, its surge_multiplier will be greater than 1, but the price estimate\nalready factors in this multiplier.",
120
122
  "tags": [
121
123
  "Estimates"
@@ -198,6 +200,7 @@
198
200
  }
199
201
  },
200
202
  "summary": "Time Estimates",
203
+ "operationId": "Time Estimates",
201
204
  "description": "The Time Estimates endpoint returns ETAs for all products offered at a given location, with the responses expressed as integers in seconds. We recommend that this endpoint be called every minute to provide the most accurate, up-to-date ETAs.",
202
205
  "tags": [
203
206
  "Estimates"
@@ -277,6 +280,7 @@
277
280
  }
278
281
  },
279
282
  "summary": "User Profile",
283
+ "operationId": "User Profile",
280
284
  "description": "The User Profile endpoint returns information about the Uber user that has authorized with the application.",
281
285
  "tags": [
282
286
  "User"
@@ -326,6 +330,7 @@
326
330
  }
327
331
  },
328
332
  "summary": "User Activity",
333
+ "operationId": "User Activity",
329
334
  "description": "The User Activity endpoint returns data about a user's lifetime activity with Uber. The response will include pickup locations and times, dropoff locations and times, the distance of past requests, and information about which products were requested.<br><br>The history array in the response will have a maximum length based on the limit parameter. The response value count may exceed limit, therefore subsequent API requests may be necessary.",
330
335
  "tags": [
331
336
  "User"
@@ -44,6 +44,7 @@
44
44
  }
45
45
  },
46
46
  "summary": "Product Types",
47
+ "operationId": "Product Types",
47
48
  "description": "The Products endpoint returns information about the *Uber* products\noffered at a given location. The response includes the display name\nand other details about each product, and lists the products in the\nproper display order.",
48
49
  "tags": [
49
50
  "Products"
@@ -116,6 +117,7 @@
116
117
  }
117
118
  },
118
119
  "summary": "Price Estimates",
120
+ "operationId": "Price Estimates",
119
121
  "description": "The Price Estimates endpoint returns an estimated price range\nfor each product offered at a given location. The price estimate is\nprovided as a formatted string with the full price range and the localized\ncurrency symbol.<br><br>The response also includes low and high estimates,\nand the [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217) currency code for\nsituations requiring currency conversion. When surge is active for a particular\nproduct, its surge_multiplier will be greater than 1, but the price estimate\nalready factors in this multiplier.",
120
122
  "tags": [
121
123
  "Estimates"
@@ -198,6 +200,7 @@
198
200
  }
199
201
  },
200
202
  "summary": "Time Estimates",
203
+ "operationId": "Time Estimates",
201
204
  "description": "The Time Estimates endpoint returns ETAs for all products offered at a given location, with the responses expressed as integers in seconds. We recommend that this endpoint be called every minute to provide the most accurate, up-to-date ETAs.",
202
205
  "tags": [
203
206
  "Estimates"
@@ -277,6 +280,7 @@
277
280
  }
278
281
  },
279
282
  "summary": "User Profile",
283
+ "operationId": "User Profile",
280
284
  "description": "The User Profile endpoint returns information about the Uber user that has authorized with the application.",
281
285
  "tags": [
282
286
  "User"
@@ -326,6 +330,7 @@
326
330
  }
327
331
  },
328
332
  "summary": "User Activity",
333
+ "operationId": "User Activity",
329
334
  "description": "The User Activity endpoint returns data about a user's lifetime activity with Uber. The response will include pickup locations and times, dropoff locations and times, the distance of past requests, and information about which products were requested.<br><br>The history array in the response will have a maximum length based on the limit parameter. The response value count may exceed limit, therefore subsequent API requests may be necessary.",
330
335
  "tags": [
331
336
  "User"
@@ -35,6 +35,7 @@
35
35
  }
36
36
  },
37
37
  "summary": "Retrieve the Entry Point",
38
+ "operationId": "Retrieve the Entry Point",
38
39
  "description": "",
39
40
  "tags": [],
40
41
  "parameters": [],
@@ -60,6 +61,7 @@
60
61
  }
61
62
  },
62
63
  "summary": "Retrieve a Single Gist",
64
+ "operationId": "Retrieve a Single Gist",
63
65
  "description": "",
64
66
  "tags": [
65
67
  "Gist"
@@ -97,6 +99,7 @@
97
99
  }
98
100
  },
99
101
  "summary": "Edit a Gist",
102
+ "operationId": "Edit a Gist",
100
103
  "description": "To update a Gist send a JSON with updated value for one or more of the Gist resource attributes. All attributes values (states) from the previous version of this Gist are carried over by default if not included in the hash.",
101
104
  "tags": [
102
105
  "Gist"
@@ -142,6 +145,7 @@
142
145
  }
143
146
  },
144
147
  "summary": "Delete a Gist",
148
+ "operationId": "Delete a Gist",
145
149
  "description": "",
146
150
  "tags": [
147
151
  "Gist"
@@ -204,6 +208,7 @@
204
208
  }
205
209
  },
206
210
  "summary": "List All Gists",
211
+ "operationId": "List All Gists",
207
212
  "description": "",
208
213
  "tags": [
209
214
  "Gist"
@@ -237,6 +242,7 @@
237
242
  }
238
243
  },
239
244
  "summary": "Create a Gist",
245
+ "operationId": "Create a Gist",
240
246
  "description": "To create a new Gist simply provide a JSON hash of the *description* and *content* attributes for the new Gist.\n\nThis action requires an `access_token` with `gist_write` scope.",
241
247
  "tags": [
242
248
  "Gist"
@@ -281,6 +287,7 @@
281
287
  }
282
288
  },
283
289
  "summary": "Star a Gist",
290
+ "operationId": "Star a Gist",
284
291
  "description": "This action requires an `access_token` with `gist_write` scope.",
285
292
  "tags": [
286
293
  "Gist"
@@ -311,6 +318,7 @@
311
318
  }
312
319
  },
313
320
  "summary": "Unstar a Gist",
321
+ "operationId": "Unstar a Gist",
314
322
  "description": "This action requires an `access_token` with `gist_write` scope.",
315
323
  "tags": [
316
324
  "Gist"
@@ -348,6 +356,7 @@
348
356
  }
349
357
  },
350
358
  "summary": "Check if a Gist is Starred",
359
+ "operationId": "Check if a Gist is Starred",
351
360
  "description": "",
352
361
  "tags": [
353
362
  "Gist"
@@ -387,6 +396,7 @@
387
396
  }
388
397
  },
389
398
  "summary": "Retrieve Authorization",
399
+ "operationId": "Retrieve Authorization",
390
400
  "description": "",
391
401
  "tags": [
392
402
  "Access Authorization and Control"
@@ -407,6 +417,7 @@
407
417
  }
408
418
  },
409
419
  "summary": "Create Authorization",
420
+ "operationId": "Create Authorization",
410
421
  "description": "",
411
422
  "tags": [
412
423
  "Access Authorization and Control"
@@ -448,6 +459,7 @@
448
459
  }
449
460
  },
450
461
  "summary": "Remove an Authorization",
462
+ "operationId": "Remove an Authorization",
451
463
  "description": "",
452
464
  "tags": [
453
465
  "Access Authorization and Control"
@@ -35,6 +35,7 @@
35
35
  }
36
36
  },
37
37
  "summary": "Retrieve the Entry Point",
38
+ "operationId": "Retrieve the Entry Point",
38
39
  "description": "",
39
40
  "tags": [],
40
41
  "parameters": [],
@@ -60,6 +61,7 @@
60
61
  }
61
62
  },
62
63
  "summary": "Retrieve a Single Gist",
64
+ "operationId": "Retrieve a Single Gist",
63
65
  "description": "",
64
66
  "tags": [
65
67
  "Gist"
@@ -97,6 +99,7 @@
97
99
  }
98
100
  },
99
101
  "summary": "Edit a Gist",
102
+ "operationId": "Edit a Gist",
100
103
  "description": "To update a Gist send a JSON with updated value for one or more of the Gist resource attributes. All attributes values (states) from the previous version of this Gist are carried over by default if not included in the hash.",
101
104
  "tags": [
102
105
  "Gist"
@@ -142,6 +145,7 @@
142
145
  }
143
146
  },
144
147
  "summary": "Delete a Gist",
148
+ "operationId": "Delete a Gist",
145
149
  "description": "",
146
150
  "tags": [
147
151
  "Gist"
@@ -204,6 +208,7 @@
204
208
  }
205
209
  },
206
210
  "summary": "List All Gists",
211
+ "operationId": "List All Gists",
207
212
  "description": "",
208
213
  "tags": [
209
214
  "Gist"
@@ -237,6 +242,7 @@
237
242
  }
238
243
  },
239
244
  "summary": "Create a Gist",
245
+ "operationId": "Create a Gist",
240
246
  "description": "To create a new Gist simply provide a JSON hash of the *description* and *content* attributes for the new Gist.\n\nThis action requires an `access_token` with `gist_write` scope.",
241
247
  "tags": [
242
248
  "Gist"
@@ -281,6 +287,7 @@
281
287
  }
282
288
  },
283
289
  "summary": "Star a Gist",
290
+ "operationId": "Star a Gist",
284
291
  "description": "This action requires an `access_token` with `gist_write` scope.",
285
292
  "tags": [
286
293
  "Gist"
@@ -311,6 +318,7 @@
311
318
  }
312
319
  },
313
320
  "summary": "Unstar a Gist",
321
+ "operationId": "Unstar a Gist",
314
322
  "description": "This action requires an `access_token` with `gist_write` scope.",
315
323
  "tags": [
316
324
  "Gist"
@@ -348,6 +356,7 @@
348
356
  }
349
357
  },
350
358
  "summary": "Check if a Gist is Starred",
359
+ "operationId": "Check if a Gist is Starred",
351
360
  "description": "",
352
361
  "tags": [
353
362
  "Gist"
@@ -387,6 +396,7 @@
387
396
  }
388
397
  },
389
398
  "summary": "Retrieve Authorization",
399
+ "operationId": "Retrieve Authorization",
390
400
  "description": "",
391
401
  "tags": [
392
402
  "Access Authorization and Control"
@@ -407,6 +417,7 @@
407
417
  }
408
418
  },
409
419
  "summary": "Create Authorization",
420
+ "operationId": "Create Authorization",
410
421
  "description": "",
411
422
  "tags": [
412
423
  "Access Authorization and Control"
@@ -448,6 +459,7 @@
448
459
  }
449
460
  },
450
461
  "summary": "Remove an Authorization",
462
+ "operationId": "Remove an Authorization",
451
463
  "description": "",
452
464
  "tags": [
453
465
  "Access Authorization and Control"
@@ -0,0 +1,52 @@
1
+ {
2
+ "swagger": "2.0",
3
+ "info": {
4
+ "title": "",
5
+ "version": "",
6
+ "description": ""
7
+ },
8
+ "paths": {
9
+ "/some/resource": {
10
+ "post": {
11
+ "responses": {
12
+ "200": {
13
+ "description": "OK",
14
+ "headers": {},
15
+ "examples": {
16
+ "text/plain": ""
17
+ }
18
+ }
19
+ },
20
+ "summary": "Some resource",
21
+ "operationId": "Some resource",
22
+ "description": "",
23
+ "tags": [],
24
+ "parameters": [
25
+ {
26
+ "name": "body",
27
+ "in": "body",
28
+ "schema": {
29
+ "type": "object",
30
+ "properties": {
31
+ "prop1": {
32
+ "type": "string"
33
+ }
34
+ },
35
+ "required": [
36
+ "prop1"
37
+ ]
38
+ }
39
+ }
40
+ ],
41
+ "produces": [
42
+ "text/plain"
43
+ ]
44
+ }
45
+ }
46
+ },
47
+ "definitions": {
48
+ "Some resource": {}
49
+ },
50
+ "securityDefinitions": {},
51
+ "tags": []
52
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "swagger": "2.0",
3
+ "info": {
4
+ "title": "",
5
+ "version": "",
6
+ "description": ""
7
+ },
8
+ "paths": {
9
+ "/some/resource": {
10
+ "post": {
11
+ "responses": {
12
+ "200": {
13
+ "description": "OK",
14
+ "headers": {},
15
+ "examples": {
16
+ "text/plain": ""
17
+ }
18
+ }
19
+ },
20
+ "summary": "Some resource",
21
+ "operationId": "Some resource",
22
+ "description": "",
23
+ "tags": [],
24
+ "parameters": [
25
+ {
26
+ "name": "body",
27
+ "in": "body",
28
+ "schema": {
29
+ "type": "object",
30
+ "properties": {
31
+ "prop1": {
32
+ "type": "string"
33
+ }
34
+ },
35
+ "required": [
36
+ "prop1"
37
+ ]
38
+ }
39
+ }
40
+ ],
41
+ "produces": [
42
+ "text/plain"
43
+ ]
44
+ }
45
+ }
46
+ },
47
+ "definitions": {
48
+ "Some resource": {}
49
+ },
50
+ "securityDefinitions": {},
51
+ "tags": []
52
+ }
File without changes