@api-client/core 0.8.2 → 0.8.3
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/data/apis/APIC-483/APIC-483.raml +16 -0
- package/data/apis/APIC-483/example/list-of-bank-succ.json +32 -0
- package/data/apis/APIC-483/schema/response-retrieve-list-bank.json +68 -0
- package/data/apis/arc-demo-api/arc-demo-api.raml +468 -0
- package/data/apis/arc-demo-api/examples/e400.xml +4 -0
- package/data/apis/arc-demo-api/examples/e401.xml +4 -0
- package/data/apis/arc-demo-api/examples/e404.xml +4 -0
- package/data/apis/arc-demo-api/examples/image.xml +5 -0
- package/data/apis/arc-demo-api/examples/messages-example.json +22 -0
- package/data/apis/arc-demo-api/examples/messages-sent-example.json +15 -0
- package/data/apis/arc-demo-api/examples/person.json +14 -0
- package/data/apis/arc-demo-api/examples/person.url.encoded +1 -0
- package/data/apis/arc-demo-api/examples/person.xml +14 -0
- package/data/apis/arc-demo-api/examples/product.xml +9 -0
- package/data/apis/arc-demo-api/library.raml +36 -0
- package/data/apis/arc-demo-api/resourceTypes/app-person.raml +49 -0
- package/data/apis/arc-demo-api/resourceTypes/example-types.raml +45 -0
- package/data/apis/arc-demo-api/resourceTypes/image.raml +23 -0
- package/data/apis/arc-demo-api/resourceTypes/message-sent-type.raml +23 -0
- package/data/apis/arc-demo-api/resourceTypes/message-type.raml +33 -0
- package/data/apis/arc-demo-api/resourceTypes/product.raml +52 -0
- package/data/apis/arc-demo-api/resourceTypes/resource.raml +11 -0
- package/data/apis/arc-demo-api/schemas/error-response.xsd +11 -0
- package/data/apis/arc-demo-api/schemas/image.xsd +11 -0
- package/data/apis/arc-demo-api/schemas/person.json +104 -0
- package/data/apis/arc-demo-api/schemas/person.xsd +26 -0
- package/data/apis/arc-demo-api/schemas/product.xsd +17 -0
- package/data/apis/arc-demo-api/securitySchemes/basic.raml +5 -0
- package/data/apis/arc-demo-api/securitySchemes/oauth_2_0.raml +29 -0
- package/data/apis/arc-demo-api/securitySchemes/x-custom.raml +26 -0
- package/data/apis/arc-demo-api/traits/adminable.raml +23 -0
- package/data/apis/arc-demo-api/traits/pagination.raml +83 -0
- package/data/apis/arc-demo-api/traits/rate-limited.raml +9 -0
- package/data/apis/oas-3-api/oas-3-api.yaml +356 -0
- package/data/apis/petstore/petstore.yaml +954 -0
- package/data/apis/secured-api/oauth-2-custom-settings.raml +143 -0
- package/data/apis/secured-api/oauth2-header-delivery.raml +13 -0
- package/data/apis/secured-api/oauth2-no-delivery.raml +8 -0
- package/data/apis/secured-api/oauth2-no-grants.raml +12 -0
- package/data/apis/secured-api/oauth2-pkce.raml +13 -0
- package/data/apis/secured-api/oauth2-query-delivery.raml +13 -0
- package/data/apis/secured-api/oauth_1_0.raml +8 -0
- package/data/apis/secured-api/oauth_1_0_no-settings.raml +3 -0
- package/data/apis/secured-api/oauth_1_0_no-signature.raml +7 -0
- package/data/apis/secured-api/oauth_1_0_signature.raml +8 -0
- package/data/apis/secured-api/passthrough-querystring.raml +16 -0
- package/data/apis/secured-api/passthrough.raml +24 -0
- package/data/apis/secured-api/secured-api.raml +231 -0
- package/data/apis/secured-api/x-custom.raml +33 -0
- package/data/apis/secured-api/x-other.raml +29 -0
- package/data/apis/secured-api/x-query-string.raml +16 -0
- package/data/model.js +5 -0
- package/data/models/APIC-483.json +3067 -0
- package/data/models/arc-demo-api.json +52694 -0
- package/data/models/oas-3-api.json +10464 -0
- package/data/models/petstore.json +27277 -0
- package/data/models/secured-api.json +19067 -0
- package/package.json +1 -1
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
openapi: '3.0.2'
|
|
2
|
+
info:
|
|
3
|
+
title: Servers demo API
|
|
4
|
+
version: '1.0'
|
|
5
|
+
description: Test API for testing AMF service
|
|
6
|
+
termsOfService: http://example.com/terms/
|
|
7
|
+
contact:
|
|
8
|
+
name: API Support
|
|
9
|
+
url: http://www.example.com/support
|
|
10
|
+
email: support@example.com
|
|
11
|
+
license:
|
|
12
|
+
name: Apache 2.0
|
|
13
|
+
url: https://www.apache.org/licenses/LICENSE-2.0.html
|
|
14
|
+
|
|
15
|
+
servers:
|
|
16
|
+
- url: https://development.gigantic-server.com/v1
|
|
17
|
+
description: Development server
|
|
18
|
+
- url: https://staging.gigantic-server.com/v1
|
|
19
|
+
description: Staging server
|
|
20
|
+
- url: https://api.gigantic-server.com/v1
|
|
21
|
+
description: Production server
|
|
22
|
+
- url: https://{username}.gigantic-server.com:{port}/{basePath}
|
|
23
|
+
description: The production API server
|
|
24
|
+
variables:
|
|
25
|
+
username:
|
|
26
|
+
default: demo
|
|
27
|
+
description: this value is assigned by the service provider, in this example `gigantic-server.com`
|
|
28
|
+
port:
|
|
29
|
+
enum:
|
|
30
|
+
- '8443'
|
|
31
|
+
- '443'
|
|
32
|
+
default: '8443'
|
|
33
|
+
basePath:
|
|
34
|
+
default: v2
|
|
35
|
+
|
|
36
|
+
components:
|
|
37
|
+
schemas:
|
|
38
|
+
GeneralError:
|
|
39
|
+
type: object
|
|
40
|
+
properties:
|
|
41
|
+
code:
|
|
42
|
+
type: integer
|
|
43
|
+
format: int32
|
|
44
|
+
message:
|
|
45
|
+
type: string
|
|
46
|
+
Category:
|
|
47
|
+
type: object
|
|
48
|
+
properties:
|
|
49
|
+
id:
|
|
50
|
+
type: integer
|
|
51
|
+
format: int64
|
|
52
|
+
name:
|
|
53
|
+
type: string
|
|
54
|
+
Tag:
|
|
55
|
+
type: object
|
|
56
|
+
properties:
|
|
57
|
+
id:
|
|
58
|
+
type: integer
|
|
59
|
+
format: int64
|
|
60
|
+
name:
|
|
61
|
+
type: string
|
|
62
|
+
Article:
|
|
63
|
+
description: Representation of an article with title and body in CommonMark format.
|
|
64
|
+
type: object
|
|
65
|
+
properties:
|
|
66
|
+
id:
|
|
67
|
+
type: string
|
|
68
|
+
description: The unique ID of this article, generated by the API implementation upon creation of the article.
|
|
69
|
+
readOnly: true
|
|
70
|
+
title:
|
|
71
|
+
description: The title of the article, in CommonMark format.
|
|
72
|
+
type: string
|
|
73
|
+
minLength: 3
|
|
74
|
+
parameters:
|
|
75
|
+
skipParam:
|
|
76
|
+
name: skip
|
|
77
|
+
in: query
|
|
78
|
+
description: number of items to skip
|
|
79
|
+
required: true
|
|
80
|
+
schema:
|
|
81
|
+
type: integer
|
|
82
|
+
format: int32
|
|
83
|
+
limitParam:
|
|
84
|
+
name: limit
|
|
85
|
+
in: query
|
|
86
|
+
description: max records to return
|
|
87
|
+
required: true
|
|
88
|
+
schema:
|
|
89
|
+
type: integer
|
|
90
|
+
format: int32
|
|
91
|
+
responses:
|
|
92
|
+
NotFound:
|
|
93
|
+
description: Entity not found.
|
|
94
|
+
IllegalInput:
|
|
95
|
+
description: Illegal input for operation.
|
|
96
|
+
GeneralError:
|
|
97
|
+
description: General Error
|
|
98
|
+
content:
|
|
99
|
+
application/json:
|
|
100
|
+
schema:
|
|
101
|
+
$ref: '#/components/schemas/GeneralError'
|
|
102
|
+
securitySchemes:
|
|
103
|
+
api_key:
|
|
104
|
+
type: apiKey
|
|
105
|
+
name: api_key
|
|
106
|
+
in: header
|
|
107
|
+
petstore_auth:
|
|
108
|
+
type: oauth2
|
|
109
|
+
flows:
|
|
110
|
+
implicit:
|
|
111
|
+
authorizationUrl: http://example.org/api/oauth/dialog
|
|
112
|
+
refreshUrl: http://example.org/api/refresh
|
|
113
|
+
scopes:
|
|
114
|
+
write:pets: modify pets in your account
|
|
115
|
+
read:pets: read your pets
|
|
116
|
+
|
|
117
|
+
BasicAuth:
|
|
118
|
+
type: http
|
|
119
|
+
scheme: basic
|
|
120
|
+
description: A basic HTTP scheme
|
|
121
|
+
|
|
122
|
+
BearerAuth:
|
|
123
|
+
type: http
|
|
124
|
+
scheme: bearer
|
|
125
|
+
bearerFormat: JWT
|
|
126
|
+
description: Bearer form of authentication
|
|
127
|
+
|
|
128
|
+
ApiKeyAuth:
|
|
129
|
+
type: apiKey
|
|
130
|
+
in: header
|
|
131
|
+
name: X-API-Key
|
|
132
|
+
description: Using API keys
|
|
133
|
+
|
|
134
|
+
ApiKeyQuery:
|
|
135
|
+
type: apiKey
|
|
136
|
+
in: query
|
|
137
|
+
name: X-API-Key
|
|
138
|
+
description: API Key in a query parameter
|
|
139
|
+
|
|
140
|
+
OpenID:
|
|
141
|
+
type: openIdConnect
|
|
142
|
+
openIdConnectUrl: https://example.com/.well-known/openid-configuration
|
|
143
|
+
description: Using OpenId
|
|
144
|
+
|
|
145
|
+
OAuth2:
|
|
146
|
+
type: oauth2
|
|
147
|
+
flows:
|
|
148
|
+
authorizationCode:
|
|
149
|
+
authorizationUrl: https://example.com/oauth/authorize
|
|
150
|
+
tokenUrl: https://example.com/oauth/token
|
|
151
|
+
refreshUrl: http://example.org/api/refresh
|
|
152
|
+
scopes:
|
|
153
|
+
read: Grants read access
|
|
154
|
+
write: Grants write access
|
|
155
|
+
admin: Grants access to admin operations
|
|
156
|
+
clientCredentials:
|
|
157
|
+
tokenUrl: https://example.com/oauth/token
|
|
158
|
+
refreshUrl: http://example.org/api/refresh
|
|
159
|
+
scopes:
|
|
160
|
+
read: Grants read access
|
|
161
|
+
password:
|
|
162
|
+
tokenUrl: http://example.org/api/token
|
|
163
|
+
scopes:
|
|
164
|
+
write: Grants write access
|
|
165
|
+
description: An oauth configuration.
|
|
166
|
+
|
|
167
|
+
cookieAuth:
|
|
168
|
+
type: apiKey
|
|
169
|
+
in: cookie
|
|
170
|
+
name: JSESSIONID
|
|
171
|
+
|
|
172
|
+
paths:
|
|
173
|
+
/pets:
|
|
174
|
+
get:
|
|
175
|
+
description: Returns all pets from the system that the user has access to
|
|
176
|
+
summary: Find all pets
|
|
177
|
+
operationId: listPets
|
|
178
|
+
tags:
|
|
179
|
+
- pet
|
|
180
|
+
security:
|
|
181
|
+
- petstore_auth:
|
|
182
|
+
- write:pets
|
|
183
|
+
- read:pets
|
|
184
|
+
responses:
|
|
185
|
+
'200':
|
|
186
|
+
description: A list of pets.
|
|
187
|
+
content:
|
|
188
|
+
application/json:
|
|
189
|
+
schema:
|
|
190
|
+
type: array
|
|
191
|
+
items:
|
|
192
|
+
$ref: '#/components/schemas/Category'
|
|
193
|
+
/default:
|
|
194
|
+
description: A default path to the API
|
|
195
|
+
get:
|
|
196
|
+
summary: "A get method"
|
|
197
|
+
responses:
|
|
198
|
+
'200':
|
|
199
|
+
description: Successful response
|
|
200
|
+
post:
|
|
201
|
+
summary: Add something
|
|
202
|
+
requestBody:
|
|
203
|
+
content: # Response body
|
|
204
|
+
application/json: # Media type
|
|
205
|
+
schema:
|
|
206
|
+
$ref: "#/components/schemas/Article"
|
|
207
|
+
responses:
|
|
208
|
+
'201':
|
|
209
|
+
description: Successful creation
|
|
210
|
+
content:
|
|
211
|
+
appliication/json:
|
|
212
|
+
schema:
|
|
213
|
+
allOf:
|
|
214
|
+
- $ref: "#/components/schemas/Article"
|
|
215
|
+
- type: object
|
|
216
|
+
properties:
|
|
217
|
+
description:
|
|
218
|
+
type: string
|
|
219
|
+
/securityCombo:
|
|
220
|
+
get:
|
|
221
|
+
security:
|
|
222
|
+
- petstore_auth:
|
|
223
|
+
- write:pets
|
|
224
|
+
- api_key: []
|
|
225
|
+
- OpenID: []
|
|
226
|
+
- OAuth2:
|
|
227
|
+
- read
|
|
228
|
+
- cookieAuth: []
|
|
229
|
+
responses:
|
|
230
|
+
'200':
|
|
231
|
+
description: All security
|
|
232
|
+
content:
|
|
233
|
+
application/json:
|
|
234
|
+
schema:
|
|
235
|
+
type: string
|
|
236
|
+
/subscribe:
|
|
237
|
+
post:
|
|
238
|
+
operationId: subscribe
|
|
239
|
+
summary: Subscribe to a webhook
|
|
240
|
+
requestBody:
|
|
241
|
+
required: true
|
|
242
|
+
content:
|
|
243
|
+
application/json:
|
|
244
|
+
schema:
|
|
245
|
+
type: object
|
|
246
|
+
properties:
|
|
247
|
+
callbackUrl:
|
|
248
|
+
type: string
|
|
249
|
+
format: uri
|
|
250
|
+
example: https://myserver.com/send/callback/here
|
|
251
|
+
inProgressUrl:
|
|
252
|
+
type: string
|
|
253
|
+
failedUrl:
|
|
254
|
+
type: string
|
|
255
|
+
successUrl:
|
|
256
|
+
type: string
|
|
257
|
+
required:
|
|
258
|
+
- callbackUrl
|
|
259
|
+
responses:
|
|
260
|
+
'201':
|
|
261
|
+
description: Webhook created
|
|
262
|
+
callbacks:
|
|
263
|
+
myEvent:
|
|
264
|
+
'{$request.body#/callbackUrl}':
|
|
265
|
+
post:
|
|
266
|
+
requestBody:
|
|
267
|
+
required: true
|
|
268
|
+
content:
|
|
269
|
+
application/json:
|
|
270
|
+
schema:
|
|
271
|
+
type: object
|
|
272
|
+
properties:
|
|
273
|
+
message:
|
|
274
|
+
type: string
|
|
275
|
+
example: Some event happened
|
|
276
|
+
required:
|
|
277
|
+
- message
|
|
278
|
+
responses:
|
|
279
|
+
'200':
|
|
280
|
+
description: Your server returns this code if it accepts the callback
|
|
281
|
+
/oas-properties:
|
|
282
|
+
post:
|
|
283
|
+
externalDocs:
|
|
284
|
+
url: https://docs.com
|
|
285
|
+
description: A doc
|
|
286
|
+
deprecated: true
|
|
287
|
+
tags:
|
|
288
|
+
- "pets"
|
|
289
|
+
- "tests"
|
|
290
|
+
description: A description
|
|
291
|
+
operationId: myId
|
|
292
|
+
requestBody:
|
|
293
|
+
description: A body
|
|
294
|
+
required: false
|
|
295
|
+
content:
|
|
296
|
+
application/x-www-form-urlencoded:
|
|
297
|
+
encoding:
|
|
298
|
+
color:
|
|
299
|
+
style: form
|
|
300
|
+
explode: false
|
|
301
|
+
examples:
|
|
302
|
+
simple:
|
|
303
|
+
value:
|
|
304
|
+
- yellow
|
|
305
|
+
- red
|
|
306
|
+
- pink
|
|
307
|
+
summary: A sample color value
|
|
308
|
+
description: Example of a color value
|
|
309
|
+
schema:
|
|
310
|
+
type: object
|
|
311
|
+
properties:
|
|
312
|
+
color:
|
|
313
|
+
type: array
|
|
314
|
+
items:
|
|
315
|
+
type: string
|
|
316
|
+
responses:
|
|
317
|
+
'200':
|
|
318
|
+
description: OK response
|
|
319
|
+
/http-security:
|
|
320
|
+
get:
|
|
321
|
+
security:
|
|
322
|
+
- BasicAuth: []
|
|
323
|
+
responses:
|
|
324
|
+
'201':
|
|
325
|
+
description: OK
|
|
326
|
+
post:
|
|
327
|
+
security:
|
|
328
|
+
- BearerAuth: []
|
|
329
|
+
responses:
|
|
330
|
+
'201':
|
|
331
|
+
description: OK
|
|
332
|
+
put:
|
|
333
|
+
security:
|
|
334
|
+
- ApiKeyAuth: []
|
|
335
|
+
responses:
|
|
336
|
+
'201':
|
|
337
|
+
description: OK
|
|
338
|
+
patch:
|
|
339
|
+
security:
|
|
340
|
+
- cookieAuth: []
|
|
341
|
+
responses:
|
|
342
|
+
'201':
|
|
343
|
+
description: OK
|
|
344
|
+
options:
|
|
345
|
+
security:
|
|
346
|
+
- ApiKeyQuery: []
|
|
347
|
+
responses:
|
|
348
|
+
'102':
|
|
349
|
+
description: OK
|
|
350
|
+
/open-id:
|
|
351
|
+
get:
|
|
352
|
+
security:
|
|
353
|
+
- OpenID: []
|
|
354
|
+
responses:
|
|
355
|
+
'201':
|
|
356
|
+
description: OK
|