@api-client/core 0.8.1 → 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/build/browser.d.ts +3 -3
- package/build/browser.js.map +1 -1
- package/build/index.d.ts +3 -3
- package/build/index.js.map +1 -1
- package/build/oauth-popup.html +29 -0
- package/build/src/amf/AmfShapeGenerator.d.ts +2 -0
- package/build/src/amf/AmfShapeGenerator.js +2 -0
- package/build/src/amf/AmfShapeGenerator.js.map +1 -1
- package/build/src/amf/ApiSchemaValues.d.ts +4 -4
- package/build/src/amf/ApiSchemaValues.js.map +1 -1
- package/build/src/amf/Utils.js +3 -1
- package/build/src/amf/Utils.js.map +1 -1
- package/build/src/amf/data-node/XmlDataNodeGenerator.js +2 -1
- package/build/src/amf/data-node/XmlDataNodeGenerator.js.map +1 -1
- package/build/src/amf/shape/ShapeBase.d.ts +1 -1
- package/build/src/amf/shape/ShapeJsonSchemaGenerator.js +4 -2
- package/build/src/amf/shape/ShapeJsonSchemaGenerator.js.map +1 -1
- package/build/src/amf/shape/ShapeXmlSchemaGenerator.d.ts +13 -13
- package/build/src/amf/shape/ShapeXmlSchemaGenerator.js +25 -7
- package/build/src/amf/shape/ShapeXmlSchemaGenerator.js.map +1 -1
- package/build/src/authorization/OAuth2Authorization.d.ts +4 -4
- package/build/src/authorization/OAuth2Authorization.js +7 -7
- package/build/src/authorization/OAuth2Authorization.js.map +1 -1
- package/build/src/authorization/OidcAuthorization.js +0 -1
- package/build/src/authorization/OidcAuthorization.js.map +1 -1
- package/build/src/data/XmlReader.js +2 -0
- package/build/src/data/XmlReader.js.map +1 -1
- package/build/src/events/CustomEvent.d.ts +1 -1
- package/build/src/events/CustomEvent.js +1 -1
- package/build/src/lib/logging/DefaultLogger.js +1 -0
- package/build/src/lib/logging/DefaultLogger.js.map +1 -1
- package/build/src/lib/parsers/UriTemplate.js +1 -1
- package/build/src/lib/parsers/UrlEncoder.js +1 -0
- package/build/src/lib/parsers/UrlEncoder.js.map +1 -1
- package/build/src/mocking/LegacyInterfaces.d.ts +1 -2
- package/build/src/mocking/LegacyMock.js +0 -1
- package/build/src/mocking/LegacyMock.js.map +1 -1
- package/build/src/mocking/legacy/Http.js +1 -1
- package/build/src/mocking/legacy/Http.js.map +1 -1
- package/build/src/models/data/DataNamespace.d.ts +0 -1
- package/build/src/models/data/DataNamespace.js +1 -1
- package/build/src/models/data/DataNamespace.js.map +1 -1
- package/build/src/models/store/Permission.js.map +1 -1
- package/build/src/models/transformers/ArcLegacyTransformer.js +1 -0
- package/build/src/models/transformers/ArcLegacyTransformer.js.map +1 -1
- package/build/src/models/transformers/PostmanV21Transformer.d.ts +1 -2
- package/build/src/models/transformers/PostmanV21Transformer.js +2 -0
- package/build/src/models/transformers/PostmanV21Transformer.js.map +1 -1
- package/build/src/models/transformers/PostmanV2Transformer.js +2 -0
- package/build/src/models/transformers/PostmanV2Transformer.js.map +1 -1
- package/build/src/runtime/store/AuthSdk.js +1 -0
- package/build/src/runtime/store/AuthSdk.js.map +1 -1
- package/build/src/runtime/store/SdkBase.js.map +1 -1
- package/build/src/testing/TestCliHelper.js.map +1 -1
- package/data/apis/APIC-187/APIC-187.raml +21 -0
- package/data/apis/APIC-187/dataType.raml +132 -0
- package/data/apis/APIC-187/example.raml +84 -0
- package/data/apis/APIC-188/APIC-188.raml +21 -0
- package/data/apis/APIC-188/dataType.raml +132 -0
- package/data/apis/APIC-188/example.raml +84 -0
- package/data/apis/APIC-233/APIC-233.raml +15 -0
- package/data/apis/APIC-391/APIC-391.raml +44 -0
- package/data/apis/APIC-391/examples/post-body-request-example.raml +7 -0
- 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/APIC-487/APIC-487.raml +36 -0
- package/data/apis/APIC-655/APIC-655.raml +44 -0
- package/data/apis/APIC-655/delivery.json +12 -0
- package/data/apis/APIC-689/APIC-689.raml +20 -0
- package/data/apis/APIC-690/APIC-690.raml +17 -0
- package/data/apis/APIC-690/datatypes/Address.raml +10 -0
- package/data/apis/APIC-690/datatypes/Customer.raml +17 -0
- package/data/apis/APIC-690/examples/CustomerExample2.raml +17 -0
- package/data/apis/APIC-690/examples/CustomersExample.raml +34 -0
- package/data/apis/SE-10469/Purchase-Order-oagis-id-dd32f9c6c01048a19e15c423c9c741ae.json +1383 -0
- package/data/apis/SE-10469/SE-10469.raml +11 -0
- package/data/apis/SE-13092/Examples/PersonExample.raml +7 -0
- package/data/apis/SE-13092/SE-13092.raml +37 -0
- package/data/apis/SE-13092/datatypes/Address.raml +5 -0
- package/data/apis/SE-13092/datatypes/InlineType.raml +5 -0
- package/data/apis/SE-13092/datatypes/Person.raml +15 -0
- package/data/apis/SE-22063/SE-22063.raml +14 -0
- package/data/apis/SE-22063/stock.raml +41 -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/example-generator-api/contact-email-example.raml +6 -0
- package/data/apis/example-generator-api/contact-example.raml +5 -0
- package/data/apis/example-generator-api/contact-fax-example.raml +5 -0
- package/data/apis/example-generator-api/contact-website-example.raml +2 -0
- package/data/apis/example-generator-api/example-1.raml +6 -0
- package/data/apis/example-generator-api/example-2.raml +9 -0
- package/data/apis/example-generator-api/example-3.raml +4 -0
- package/data/apis/example-generator-api/example-4.raml +2 -0
- package/data/apis/example-generator-api/example-5.raml +4 -0
- package/data/apis/example-generator-api/example-6.raml +2 -0
- package/data/apis/example-generator-api/example-7.raml +5 -0
- package/data/apis/example-generator-api/example-generator-api.raml +423 -0
- package/data/apis/example-generator-api/example.json +14 -0
- package/data/apis/example-generator-api/example.xml +15 -0
- package/data/apis/example-generator-api/example.xsd +26 -0
- package/data/apis/example-generator-api/examples/employee.raml +7 -0
- package/data/apis/example-generator-api/examples/employees.raml +7 -0
- package/data/apis/example-generator-api/linked-named-example.raml +21 -0
- package/data/apis/example-generator-api/named-example-with-link.raml +5 -0
- package/data/apis/example-generator-api/named-example.raml +9 -0
- package/data/apis/example-generator-api/user-json-example.raml +17 -0
- package/data/apis/example-generator-api/user-raml-example.raml +37 -0
- package/data/apis/example-generator-api/user.json +8 -0
- package/data/apis/example-generator-api/user.raml +18 -0
- package/data/apis/example-generator-api/users-json-example.raml +17 -0
- package/data/apis/example-generator-api/users-raml-example.raml +32 -0
- package/data/apis/example-generator-api/users.json +8 -0
- package/data/apis/oas-3-api/oas-3-api.yaml +356 -0
- package/data/apis/petstore/petstore.yaml +954 -0
- package/data/apis/schema-api/schema-api.raml +13 -1
- 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/apis/tracked-examples/datatypes/employee.raml +5 -0
- package/data/apis/tracked-examples/examples/employee.raml +4 -0
- package/data/apis/tracked-examples/examples/employees.raml +8 -0
- package/data/apis/tracked-examples/tracked-to-linked.raml +28 -0
- package/data/model.js +19 -0
- package/data/models/APIC-187.json +11398 -0
- package/data/models/APIC-188.json +11398 -0
- package/data/models/APIC-233.json +539 -0
- package/data/models/APIC-391.json +1872 -0
- package/data/models/APIC-483.json +3067 -0
- package/data/models/APIC-487.json +1225 -0
- package/data/models/APIC-655.json +3109 -0
- package/data/models/APIC-689.json +761 -0
- package/data/models/APIC-690.json +5992 -0
- package/data/models/SE-10469.json +22882 -0
- package/data/models/SE-13092.json +2715 -0
- package/data/models/SE-22063.json +2276 -0
- package/data/models/arc-demo-api.json +52694 -0
- package/data/models/example-generator-api.json +44978 -0
- package/data/models/oas-3-api.json +10464 -0
- package/data/models/petstore.json +27277 -0
- package/data/models/schema-api.json +436 -428
- package/data/models/secured-api.json +19067 -0
- package/data/models/tracked-to-linked.json +1790 -0
- package/package.json +6 -5
- package/src/amf/AmfShapeGenerator.ts +5 -3
- package/src/amf/ApiSchemaValues.ts +5 -5
- package/src/amf/Utils.ts +6 -4
- package/src/amf/data-node/XmlDataNodeGenerator.ts +2 -1
- package/src/amf/shape/ShapeBase.ts +1 -1
- package/src/amf/shape/ShapeJsonSchemaGenerator.ts +4 -2
- package/src/amf/shape/ShapeXmlSchemaGenerator.ts +85 -66
- package/src/authorization/OAuth2Authorization.ts +33 -32
- package/src/authorization/OidcAuthorization.ts +3 -4
- package/src/data/XmlReader.ts +7 -5
- package/src/events/CustomEvent.ts +1 -1
- package/src/lib/logging/DefaultLogger.ts +1 -0
- package/src/lib/parsers/UriTemplate.ts +1 -1
- package/src/lib/parsers/UrlEncoder.ts +1 -0
- package/src/mocking/LegacyInterfaces.ts +1 -2
- package/src/mocking/LegacyMock.ts +0 -1
- package/src/mocking/legacy/Http.ts +1 -1
- package/src/models/data/DataNamespace.ts +2 -2
- package/src/models/store/Permission.ts +1 -1
- package/src/models/transformers/ArcLegacyTransformer.ts +1 -0
- package/src/models/transformers/PostmanV21Transformer.ts +3 -2
- package/src/models/transformers/PostmanV2Transformer.ts +2 -0
- package/src/runtime/store/AuthSdk.ts +1 -0
- package/src/runtime/store/SdkBase.ts +1 -0
- package/src/testing/TestCliHelper.ts +1 -0
|
@@ -0,0 +1,954 @@
|
|
|
1
|
+
openapi: 3.0.2
|
|
2
|
+
servers:
|
|
3
|
+
- url: /v3
|
|
4
|
+
info:
|
|
5
|
+
description: |-
|
|
6
|
+
This is a sample Pet Store Server based on the OpenAPI 3.0 specification. You can find out more about
|
|
7
|
+
Swagger at [http://swagger.io](http://swagger.io). In the third iteration of the pet store, we've switched to the design first approach!
|
|
8
|
+
You can now help us improve the API whether it's by making changes to the definition itself or to the code.
|
|
9
|
+
That way, with time, we can improve the API in general, and expose some of the new features in OAS3.
|
|
10
|
+
|
|
11
|
+
Some useful links:
|
|
12
|
+
- [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)
|
|
13
|
+
- [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)
|
|
14
|
+
version: 1.0.6-SNAPSHOT
|
|
15
|
+
title: Swagger Petstore - OpenAPI 3.0
|
|
16
|
+
termsOfService: 'http://swagger.io/terms/'
|
|
17
|
+
contact:
|
|
18
|
+
email: apiteam@swagger.io
|
|
19
|
+
name: Swagger IO
|
|
20
|
+
url: swagger.io
|
|
21
|
+
license:
|
|
22
|
+
name: Apache 2.0
|
|
23
|
+
url: 'http://www.apache.org/licenses/LICENSE-2.0.html'
|
|
24
|
+
tags:
|
|
25
|
+
- name: pet
|
|
26
|
+
description: Everything about your Pets
|
|
27
|
+
externalDocs:
|
|
28
|
+
description: Find out more
|
|
29
|
+
url: 'http://swagger.io'
|
|
30
|
+
- name: store
|
|
31
|
+
description: Operations about user
|
|
32
|
+
- name: user
|
|
33
|
+
description: Access to Petstore orders
|
|
34
|
+
externalDocs:
|
|
35
|
+
description: Find out more about our store
|
|
36
|
+
url: 'http://swagger.io'
|
|
37
|
+
paths:
|
|
38
|
+
/pet:
|
|
39
|
+
post:
|
|
40
|
+
tags:
|
|
41
|
+
- pet
|
|
42
|
+
summary: Add a new pet to the store
|
|
43
|
+
description: Add a new pet to the store
|
|
44
|
+
operationId: addPet
|
|
45
|
+
deprecated: true
|
|
46
|
+
responses:
|
|
47
|
+
'200':
|
|
48
|
+
description: Successful operation
|
|
49
|
+
content:
|
|
50
|
+
application/xml:
|
|
51
|
+
schema:
|
|
52
|
+
$ref: '#/components/schemas/Pet'
|
|
53
|
+
application/json:
|
|
54
|
+
schema:
|
|
55
|
+
$ref: '#/components/schemas/Pet'
|
|
56
|
+
'405':
|
|
57
|
+
description: Invalid input
|
|
58
|
+
security:
|
|
59
|
+
- petstore_auth:
|
|
60
|
+
- 'write:pets'
|
|
61
|
+
- 'read:pets'
|
|
62
|
+
requestBody:
|
|
63
|
+
description: Create a new pet in the store
|
|
64
|
+
required: true
|
|
65
|
+
content:
|
|
66
|
+
application/json:
|
|
67
|
+
schema:
|
|
68
|
+
$ref: '#/components/schemas/Pet'
|
|
69
|
+
application/xml:
|
|
70
|
+
schema:
|
|
71
|
+
$ref: '#/components/schemas/Pet'
|
|
72
|
+
application/x-www-form-urlencoded:
|
|
73
|
+
schema:
|
|
74
|
+
$ref: '#/components/schemas/Pet'
|
|
75
|
+
put:
|
|
76
|
+
tags:
|
|
77
|
+
- pet
|
|
78
|
+
summary: Update an existing pet
|
|
79
|
+
description: Update an existing pet by Id
|
|
80
|
+
operationId: updatePet
|
|
81
|
+
responses:
|
|
82
|
+
'200':
|
|
83
|
+
description: Successful operation
|
|
84
|
+
content:
|
|
85
|
+
application/xml:
|
|
86
|
+
schema:
|
|
87
|
+
$ref: '#/components/schemas/Pet'
|
|
88
|
+
application/json:
|
|
89
|
+
schema:
|
|
90
|
+
$ref: '#/components/schemas/Pet'
|
|
91
|
+
'400':
|
|
92
|
+
description: Invalid ID supplied
|
|
93
|
+
'404':
|
|
94
|
+
description: Pet not found
|
|
95
|
+
'405':
|
|
96
|
+
description: Validation exception
|
|
97
|
+
security:
|
|
98
|
+
- petstore_auth:
|
|
99
|
+
- 'write:pets'
|
|
100
|
+
- 'read:pets'
|
|
101
|
+
requestBody:
|
|
102
|
+
description: Update an existent pet in the store
|
|
103
|
+
required: true
|
|
104
|
+
content:
|
|
105
|
+
application/json:
|
|
106
|
+
schema:
|
|
107
|
+
$ref: '#/components/schemas/Pet'
|
|
108
|
+
application/xml:
|
|
109
|
+
schema:
|
|
110
|
+
$ref: '#/components/schemas/Pet'
|
|
111
|
+
application/x-www-form-urlencoded:
|
|
112
|
+
schema:
|
|
113
|
+
$ref: '#/components/schemas/Pet'
|
|
114
|
+
/pet/findByStatus:
|
|
115
|
+
get:
|
|
116
|
+
tags:
|
|
117
|
+
- pet
|
|
118
|
+
summary: Finds Pets by status
|
|
119
|
+
description: Multiple status values can be provided with comma separated strings
|
|
120
|
+
operationId: findPetsByStatus
|
|
121
|
+
parameters:
|
|
122
|
+
- name: status
|
|
123
|
+
in: query
|
|
124
|
+
description: Status values that need to be considered for filter
|
|
125
|
+
required: false
|
|
126
|
+
explode: true
|
|
127
|
+
example: pending
|
|
128
|
+
schema:
|
|
129
|
+
type: string
|
|
130
|
+
enum:
|
|
131
|
+
- available
|
|
132
|
+
- pending
|
|
133
|
+
- sold
|
|
134
|
+
default: available
|
|
135
|
+
responses:
|
|
136
|
+
'200':
|
|
137
|
+
description: successful operation
|
|
138
|
+
content:
|
|
139
|
+
application/xml:
|
|
140
|
+
schema:
|
|
141
|
+
type: array
|
|
142
|
+
items:
|
|
143
|
+
$ref: '#/components/schemas/Pet'
|
|
144
|
+
application/json:
|
|
145
|
+
schema:
|
|
146
|
+
type: array
|
|
147
|
+
items:
|
|
148
|
+
$ref: '#/components/schemas/Pet'
|
|
149
|
+
'400':
|
|
150
|
+
description: Invalid status value
|
|
151
|
+
security:
|
|
152
|
+
- petstore_auth:
|
|
153
|
+
- 'write:pets'
|
|
154
|
+
- 'read:pets'
|
|
155
|
+
/pet/findByTags:
|
|
156
|
+
get:
|
|
157
|
+
tags:
|
|
158
|
+
- pet
|
|
159
|
+
summary: Finds Pets by tags
|
|
160
|
+
description: >-
|
|
161
|
+
Multiple tags can be provided with comma separated strings. Use tag1,
|
|
162
|
+
tag2, tag3 for testing.
|
|
163
|
+
operationId: findPetsByTags
|
|
164
|
+
parameters:
|
|
165
|
+
- name: tags
|
|
166
|
+
in: query
|
|
167
|
+
description: Tags to filter by
|
|
168
|
+
required: false
|
|
169
|
+
explode: true
|
|
170
|
+
schema:
|
|
171
|
+
type: array
|
|
172
|
+
items:
|
|
173
|
+
type: string
|
|
174
|
+
responses:
|
|
175
|
+
'200':
|
|
176
|
+
description: successful operation
|
|
177
|
+
content:
|
|
178
|
+
application/xml:
|
|
179
|
+
schema:
|
|
180
|
+
type: array
|
|
181
|
+
items:
|
|
182
|
+
$ref: '#/components/schemas/Pet'
|
|
183
|
+
application/json:
|
|
184
|
+
schema:
|
|
185
|
+
type: array
|
|
186
|
+
items:
|
|
187
|
+
$ref: '#/components/schemas/Pet'
|
|
188
|
+
'400':
|
|
189
|
+
description: Invalid tag value
|
|
190
|
+
security:
|
|
191
|
+
- petstore_auth:
|
|
192
|
+
- 'write:pets'
|
|
193
|
+
- 'read:pets'
|
|
194
|
+
'/pet/{petId}':
|
|
195
|
+
get:
|
|
196
|
+
tags:
|
|
197
|
+
- pet
|
|
198
|
+
summary: Find pet by ID
|
|
199
|
+
description: Returns a single pet
|
|
200
|
+
operationId: getPetById
|
|
201
|
+
parameters:
|
|
202
|
+
- name: petId
|
|
203
|
+
in: path
|
|
204
|
+
description: ID of pet to return
|
|
205
|
+
required: true
|
|
206
|
+
schema:
|
|
207
|
+
type: integer
|
|
208
|
+
format: int64
|
|
209
|
+
responses:
|
|
210
|
+
'200':
|
|
211
|
+
description: successful operation
|
|
212
|
+
content:
|
|
213
|
+
application/xml:
|
|
214
|
+
schema:
|
|
215
|
+
$ref: '#/components/schemas/Pet'
|
|
216
|
+
application/json:
|
|
217
|
+
schema:
|
|
218
|
+
$ref: '#/components/schemas/Pet'
|
|
219
|
+
'400':
|
|
220
|
+
description: Invalid ID supplied
|
|
221
|
+
'404':
|
|
222
|
+
description: Pet not found
|
|
223
|
+
security:
|
|
224
|
+
- api_key: []
|
|
225
|
+
- petstore_auth:
|
|
226
|
+
- 'write:pets'
|
|
227
|
+
- 'read:pets'
|
|
228
|
+
post:
|
|
229
|
+
tags:
|
|
230
|
+
- pet
|
|
231
|
+
summary: Updates a pet in the store with form data
|
|
232
|
+
description: ''
|
|
233
|
+
operationId: updatePetWithForm
|
|
234
|
+
parameters:
|
|
235
|
+
- name: petId
|
|
236
|
+
in: path
|
|
237
|
+
description: ID of pet that needs to be updated
|
|
238
|
+
required: true
|
|
239
|
+
schema:
|
|
240
|
+
type: integer
|
|
241
|
+
format: int64
|
|
242
|
+
- name: name
|
|
243
|
+
in: query
|
|
244
|
+
description: Name of pet that needs to be updated
|
|
245
|
+
deprecated: true
|
|
246
|
+
explode: true
|
|
247
|
+
allowEmptyValue: true
|
|
248
|
+
allowReserved: true
|
|
249
|
+
required: false
|
|
250
|
+
style: form
|
|
251
|
+
example: "A name"
|
|
252
|
+
schema:
|
|
253
|
+
type: string
|
|
254
|
+
- name: status
|
|
255
|
+
in: query
|
|
256
|
+
description: Status of pet that needs to be updated
|
|
257
|
+
schema:
|
|
258
|
+
type: string
|
|
259
|
+
- name: debug
|
|
260
|
+
in: cookie
|
|
261
|
+
description: Whether to debug the response
|
|
262
|
+
schema:
|
|
263
|
+
type: number
|
|
264
|
+
- in: query
|
|
265
|
+
name: filter
|
|
266
|
+
content:
|
|
267
|
+
application/json:
|
|
268
|
+
schema:
|
|
269
|
+
type: object
|
|
270
|
+
properties:
|
|
271
|
+
type:
|
|
272
|
+
type: string
|
|
273
|
+
color:
|
|
274
|
+
type: string
|
|
275
|
+
responses:
|
|
276
|
+
'405':
|
|
277
|
+
description: Invalid input
|
|
278
|
+
security:
|
|
279
|
+
- petstore_auth:
|
|
280
|
+
- 'write:pets'
|
|
281
|
+
- 'read:pets'
|
|
282
|
+
delete:
|
|
283
|
+
tags:
|
|
284
|
+
- pet
|
|
285
|
+
summary: Deletes a pet
|
|
286
|
+
description: ''
|
|
287
|
+
operationId: deletePet
|
|
288
|
+
parameters:
|
|
289
|
+
- name: api_key
|
|
290
|
+
in: header
|
|
291
|
+
description: ''
|
|
292
|
+
required: false
|
|
293
|
+
schema:
|
|
294
|
+
type: string
|
|
295
|
+
- name: petId
|
|
296
|
+
in: path
|
|
297
|
+
description: Pet id to delete
|
|
298
|
+
required: true
|
|
299
|
+
schema:
|
|
300
|
+
type: integer
|
|
301
|
+
format: int64
|
|
302
|
+
responses:
|
|
303
|
+
'400':
|
|
304
|
+
description: Invalid pet value
|
|
305
|
+
security:
|
|
306
|
+
- petstore_auth:
|
|
307
|
+
- 'write:pets'
|
|
308
|
+
- 'read:pets'
|
|
309
|
+
'/pet/{petId}/uploadImage':
|
|
310
|
+
post:
|
|
311
|
+
tags:
|
|
312
|
+
- pet
|
|
313
|
+
summary: uploads an image
|
|
314
|
+
description: ''
|
|
315
|
+
operationId: uploadFile
|
|
316
|
+
parameters:
|
|
317
|
+
- name: petId
|
|
318
|
+
in: path
|
|
319
|
+
description: ID of pet to update
|
|
320
|
+
required: true
|
|
321
|
+
schema:
|
|
322
|
+
type: integer
|
|
323
|
+
format: int64
|
|
324
|
+
- name: additionalMetadata
|
|
325
|
+
in: query
|
|
326
|
+
description: Additional Metadata
|
|
327
|
+
required: false
|
|
328
|
+
schema:
|
|
329
|
+
type: string
|
|
330
|
+
responses:
|
|
331
|
+
'200':
|
|
332
|
+
description: successful operation
|
|
333
|
+
content:
|
|
334
|
+
application/json:
|
|
335
|
+
schema:
|
|
336
|
+
$ref: '#/components/schemas/ApiResponse'
|
|
337
|
+
security:
|
|
338
|
+
- petstore_auth:
|
|
339
|
+
- 'write:pets'
|
|
340
|
+
- 'read:pets'
|
|
341
|
+
requestBody:
|
|
342
|
+
content:
|
|
343
|
+
application/octet-stream:
|
|
344
|
+
schema:
|
|
345
|
+
type: string
|
|
346
|
+
format: binary
|
|
347
|
+
/pet/listDogs:
|
|
348
|
+
get:
|
|
349
|
+
tags:
|
|
350
|
+
- pet
|
|
351
|
+
summary: List dogs only
|
|
352
|
+
description: An endpoint to list pets that are dogs.
|
|
353
|
+
operationId: listDogs
|
|
354
|
+
responses:
|
|
355
|
+
'200':
|
|
356
|
+
description: |
|
|
357
|
+
A response that returns a paginated object listing all dogs in the store.
|
|
358
|
+
content:
|
|
359
|
+
application/json:
|
|
360
|
+
schema:
|
|
361
|
+
type: array
|
|
362
|
+
items:
|
|
363
|
+
$ref: '#/components/schemas/Dog'
|
|
364
|
+
/pet/listCommon:
|
|
365
|
+
get:
|
|
366
|
+
tags:
|
|
367
|
+
- pet
|
|
368
|
+
summary: List common
|
|
369
|
+
description: An endpoint to list dogs, cats, and lizards.
|
|
370
|
+
operationId: listCommon
|
|
371
|
+
responses:
|
|
372
|
+
'200':
|
|
373
|
+
description: |
|
|
374
|
+
A response that returns a paginated object listing all common pets in the store.
|
|
375
|
+
content:
|
|
376
|
+
application/json:
|
|
377
|
+
schema:
|
|
378
|
+
type: array
|
|
379
|
+
items:
|
|
380
|
+
anyOf:
|
|
381
|
+
- $ref: '#/components/schemas/Dog'
|
|
382
|
+
- $ref: '#/components/schemas/Cat'
|
|
383
|
+
- $ref: '#/components/schemas/Lizard'
|
|
384
|
+
|
|
385
|
+
/store/inventory:
|
|
386
|
+
get:
|
|
387
|
+
tags:
|
|
388
|
+
- store
|
|
389
|
+
summary: Returns pet inventories by status
|
|
390
|
+
description: Returns a map of status codes to quantities
|
|
391
|
+
operationId: getInventory
|
|
392
|
+
x-swagger-router-controller: OrderController
|
|
393
|
+
responses:
|
|
394
|
+
'200':
|
|
395
|
+
description: successful operation
|
|
396
|
+
content:
|
|
397
|
+
application/json:
|
|
398
|
+
schema:
|
|
399
|
+
type: object
|
|
400
|
+
additionalProperties:
|
|
401
|
+
type: integer
|
|
402
|
+
format: int32
|
|
403
|
+
security:
|
|
404
|
+
- api_key: []
|
|
405
|
+
/store/order:
|
|
406
|
+
post:
|
|
407
|
+
tags:
|
|
408
|
+
- store
|
|
409
|
+
summary: Place an order for a pet
|
|
410
|
+
description: Place a new order in the store
|
|
411
|
+
operationId: placeOrder
|
|
412
|
+
x-swagger-router-controller: OrderController
|
|
413
|
+
responses:
|
|
414
|
+
'200':
|
|
415
|
+
description: successful operation
|
|
416
|
+
content:
|
|
417
|
+
application/json:
|
|
418
|
+
schema:
|
|
419
|
+
$ref: '#/components/schemas/Order'
|
|
420
|
+
'405':
|
|
421
|
+
description: Invalid input
|
|
422
|
+
requestBody:
|
|
423
|
+
content:
|
|
424
|
+
application/json:
|
|
425
|
+
schema:
|
|
426
|
+
$ref: '#/components/schemas/Order'
|
|
427
|
+
application/xml:
|
|
428
|
+
schema:
|
|
429
|
+
$ref: '#/components/schemas/Order'
|
|
430
|
+
application/x-www-form-urlencoded:
|
|
431
|
+
schema:
|
|
432
|
+
$ref: '#/components/schemas/Order'
|
|
433
|
+
'/store/order/{orderId}':
|
|
434
|
+
get:
|
|
435
|
+
tags:
|
|
436
|
+
- store
|
|
437
|
+
summary: Find purchase order by ID
|
|
438
|
+
x-swagger-router-controller: OrderController
|
|
439
|
+
description: >-
|
|
440
|
+
For valid response try integer IDs with value <= 5 or > 10. Other values
|
|
441
|
+
will generated exceptions
|
|
442
|
+
operationId: getOrderById
|
|
443
|
+
parameters:
|
|
444
|
+
- name: orderId
|
|
445
|
+
in: path
|
|
446
|
+
description: ID of order that needs to be fetched
|
|
447
|
+
required: true
|
|
448
|
+
schema:
|
|
449
|
+
type: integer
|
|
450
|
+
format: int64
|
|
451
|
+
responses:
|
|
452
|
+
'200':
|
|
453
|
+
description: successful operation
|
|
454
|
+
content:
|
|
455
|
+
application/xml:
|
|
456
|
+
schema:
|
|
457
|
+
$ref: '#/components/schemas/Order'
|
|
458
|
+
application/json:
|
|
459
|
+
schema:
|
|
460
|
+
$ref: '#/components/schemas/Order'
|
|
461
|
+
'400':
|
|
462
|
+
description: Invalid ID supplied
|
|
463
|
+
'404':
|
|
464
|
+
description: Order not found
|
|
465
|
+
delete:
|
|
466
|
+
tags:
|
|
467
|
+
- store
|
|
468
|
+
summary: Delete purchase order by ID
|
|
469
|
+
x-swagger-router-controller: OrderController
|
|
470
|
+
description: >-
|
|
471
|
+
For valid response try integer IDs with value < 1000. Anything above
|
|
472
|
+
1000 or nonintegers will generate API errors
|
|
473
|
+
operationId: deleteOrder
|
|
474
|
+
parameters:
|
|
475
|
+
- name: orderId
|
|
476
|
+
in: path
|
|
477
|
+
description: ID of the order that needs to be deleted
|
|
478
|
+
required: true
|
|
479
|
+
schema:
|
|
480
|
+
type: integer
|
|
481
|
+
format: int64
|
|
482
|
+
responses:
|
|
483
|
+
'400':
|
|
484
|
+
description: Invalid ID supplied
|
|
485
|
+
'404':
|
|
486
|
+
description: Order not found
|
|
487
|
+
/user:
|
|
488
|
+
post:
|
|
489
|
+
tags:
|
|
490
|
+
- user
|
|
491
|
+
summary: Create user
|
|
492
|
+
description: This can only be done by the logged in user.
|
|
493
|
+
operationId: createUser
|
|
494
|
+
responses:
|
|
495
|
+
default:
|
|
496
|
+
description: successful operation
|
|
497
|
+
content:
|
|
498
|
+
application/json:
|
|
499
|
+
schema:
|
|
500
|
+
$ref: '#/components/schemas/User'
|
|
501
|
+
application/xml:
|
|
502
|
+
schema:
|
|
503
|
+
$ref: '#/components/schemas/User'
|
|
504
|
+
links:
|
|
505
|
+
GetUserByUserName:
|
|
506
|
+
operationId: getUserByName
|
|
507
|
+
parameters:
|
|
508
|
+
username: '$request.body#/username'
|
|
509
|
+
description: >
|
|
510
|
+
The `username` value from the request body to be used as
|
|
511
|
+
the `username` parameter in `GET /users/{username}`.
|
|
512
|
+
GetUserByRef:
|
|
513
|
+
operationRef: '#/paths/user/{username}/get'
|
|
514
|
+
parameters:
|
|
515
|
+
username: '$request.body#/username'
|
|
516
|
+
description: >
|
|
517
|
+
This uses `operationRef` instead of `operationId`.
|
|
518
|
+
requestBody:
|
|
519
|
+
content:
|
|
520
|
+
application/json:
|
|
521
|
+
schema:
|
|
522
|
+
$ref: '#/components/schemas/User'
|
|
523
|
+
application/xml:
|
|
524
|
+
schema:
|
|
525
|
+
$ref: '#/components/schemas/User'
|
|
526
|
+
application/x-www-form-urlencoded:
|
|
527
|
+
schema:
|
|
528
|
+
$ref: '#/components/schemas/User'
|
|
529
|
+
description: Created user object
|
|
530
|
+
/user/createWithList:
|
|
531
|
+
post:
|
|
532
|
+
tags:
|
|
533
|
+
- user
|
|
534
|
+
summary: Creates list of users with given input array
|
|
535
|
+
description: 'Creates list of users with given input array'
|
|
536
|
+
x-swagger-router-controller: UserController
|
|
537
|
+
operationId: createUsersWithListInput
|
|
538
|
+
responses:
|
|
539
|
+
'200':
|
|
540
|
+
description: Successful operation
|
|
541
|
+
content:
|
|
542
|
+
application/xml:
|
|
543
|
+
schema:
|
|
544
|
+
$ref: '#/components/schemas/User'
|
|
545
|
+
application/json:
|
|
546
|
+
schema:
|
|
547
|
+
$ref: '#/components/schemas/User'
|
|
548
|
+
default:
|
|
549
|
+
description: successful operation
|
|
550
|
+
requestBody:
|
|
551
|
+
content:
|
|
552
|
+
application/json:
|
|
553
|
+
schema:
|
|
554
|
+
type: array
|
|
555
|
+
items:
|
|
556
|
+
$ref: '#/components/schemas/User'
|
|
557
|
+
/user/login:
|
|
558
|
+
get:
|
|
559
|
+
tags:
|
|
560
|
+
- user
|
|
561
|
+
summary: Logs user into the system
|
|
562
|
+
description: ''
|
|
563
|
+
operationId: loginUser
|
|
564
|
+
parameters:
|
|
565
|
+
- name: username
|
|
566
|
+
in: query
|
|
567
|
+
description: The user name for login
|
|
568
|
+
required: false
|
|
569
|
+
schema:
|
|
570
|
+
type: string
|
|
571
|
+
- name: password
|
|
572
|
+
in: query
|
|
573
|
+
description: The password for login in clear text
|
|
574
|
+
required: false
|
|
575
|
+
schema:
|
|
576
|
+
type: string
|
|
577
|
+
responses:
|
|
578
|
+
'200':
|
|
579
|
+
description: successful operation
|
|
580
|
+
headers:
|
|
581
|
+
X-Rate-Limit:
|
|
582
|
+
description: calls per hour allowed by the user
|
|
583
|
+
schema:
|
|
584
|
+
type: integer
|
|
585
|
+
format: int32
|
|
586
|
+
X-Expires-After:
|
|
587
|
+
description: date in UTC when token expires
|
|
588
|
+
schema:
|
|
589
|
+
type: string
|
|
590
|
+
format: date-time
|
|
591
|
+
content:
|
|
592
|
+
application/xml:
|
|
593
|
+
schema:
|
|
594
|
+
type: string
|
|
595
|
+
application/json:
|
|
596
|
+
schema:
|
|
597
|
+
type: string
|
|
598
|
+
'400':
|
|
599
|
+
description: Invalid username/password supplied
|
|
600
|
+
/user/logout:
|
|
601
|
+
get:
|
|
602
|
+
tags:
|
|
603
|
+
- user
|
|
604
|
+
summary: Logs out current logged in user session
|
|
605
|
+
description: ''
|
|
606
|
+
operationId: logoutUser
|
|
607
|
+
parameters: []
|
|
608
|
+
responses:
|
|
609
|
+
default:
|
|
610
|
+
description: successful operation
|
|
611
|
+
'/user/{username}':
|
|
612
|
+
summary: Represents a user
|
|
613
|
+
description: >
|
|
614
|
+
This resource represents an individual user in the system.
|
|
615
|
+
Each user is identified by a numeric `id`.
|
|
616
|
+
parameters:
|
|
617
|
+
- name: username
|
|
618
|
+
in: path
|
|
619
|
+
description: 'The name that needs to be fetched. Use user1 for testing. '
|
|
620
|
+
required: true
|
|
621
|
+
schema:
|
|
622
|
+
type: string
|
|
623
|
+
get:
|
|
624
|
+
tags:
|
|
625
|
+
- user
|
|
626
|
+
summary: Get user by user name
|
|
627
|
+
description: ''
|
|
628
|
+
operationId: getUserByName
|
|
629
|
+
responses:
|
|
630
|
+
'200':
|
|
631
|
+
description: successful operation
|
|
632
|
+
content:
|
|
633
|
+
application/xml:
|
|
634
|
+
schema:
|
|
635
|
+
$ref: '#/components/schemas/User'
|
|
636
|
+
application/json:
|
|
637
|
+
schema:
|
|
638
|
+
$ref: '#/components/schemas/User'
|
|
639
|
+
'400':
|
|
640
|
+
description: Invalid username supplied
|
|
641
|
+
'404':
|
|
642
|
+
description: User not found
|
|
643
|
+
put:
|
|
644
|
+
tags:
|
|
645
|
+
- user
|
|
646
|
+
summary: Update user
|
|
647
|
+
x-swagger-router-controller: UserController
|
|
648
|
+
description: This can only be done by the logged in user.
|
|
649
|
+
operationId: updateUser
|
|
650
|
+
parameters:
|
|
651
|
+
- name: username
|
|
652
|
+
in: path
|
|
653
|
+
description: name that need to be deleted
|
|
654
|
+
required: true
|
|
655
|
+
schema:
|
|
656
|
+
type: string
|
|
657
|
+
responses:
|
|
658
|
+
default:
|
|
659
|
+
description: successful operation
|
|
660
|
+
requestBody:
|
|
661
|
+
description: Update an existent user in the store
|
|
662
|
+
content:
|
|
663
|
+
application/json:
|
|
664
|
+
schema:
|
|
665
|
+
$ref: '#/components/schemas/User'
|
|
666
|
+
application/xml:
|
|
667
|
+
schema:
|
|
668
|
+
$ref: '#/components/schemas/User'
|
|
669
|
+
application/x-www-form-urlencoded:
|
|
670
|
+
schema:
|
|
671
|
+
$ref: '#/components/schemas/User'
|
|
672
|
+
delete:
|
|
673
|
+
tags:
|
|
674
|
+
- user
|
|
675
|
+
summary: Delete user
|
|
676
|
+
description: This can only be done by the logged in user.
|
|
677
|
+
operationId: deleteUser
|
|
678
|
+
parameters:
|
|
679
|
+
- name: username
|
|
680
|
+
in: path
|
|
681
|
+
description: The name that needs to be deleted
|
|
682
|
+
required: true
|
|
683
|
+
schema:
|
|
684
|
+
type: string
|
|
685
|
+
responses:
|
|
686
|
+
'400':
|
|
687
|
+
description: Invalid username supplied
|
|
688
|
+
'404':
|
|
689
|
+
description: User not found
|
|
690
|
+
/unions:
|
|
691
|
+
patch:
|
|
692
|
+
summary: An oneOf body
|
|
693
|
+
requestBody:
|
|
694
|
+
content:
|
|
695
|
+
application/json:
|
|
696
|
+
schema:
|
|
697
|
+
oneOf:
|
|
698
|
+
- $ref: '#/components/schemas/Cat'
|
|
699
|
+
- $ref: '#/components/schemas/Dog'
|
|
700
|
+
responses:
|
|
701
|
+
'200':
|
|
702
|
+
description: Updated
|
|
703
|
+
post:
|
|
704
|
+
summary: An allOf body
|
|
705
|
+
requestBody:
|
|
706
|
+
content:
|
|
707
|
+
application/json:
|
|
708
|
+
schema:
|
|
709
|
+
allOf:
|
|
710
|
+
- $ref: '#/components/schemas/Cat'
|
|
711
|
+
- $ref: '#/components/schemas/Dog'
|
|
712
|
+
discriminator:
|
|
713
|
+
propertyName: pet_type
|
|
714
|
+
responses:
|
|
715
|
+
'200':
|
|
716
|
+
description: Updated
|
|
717
|
+
externalDocs:
|
|
718
|
+
description: Find out more about Swagger
|
|
719
|
+
url: 'http://swagger.io'
|
|
720
|
+
components:
|
|
721
|
+
schemas:
|
|
722
|
+
Order:
|
|
723
|
+
x-swagger-router-model: io.swagger.petstore.model.Order
|
|
724
|
+
properties:
|
|
725
|
+
id:
|
|
726
|
+
type: integer
|
|
727
|
+
format: int64
|
|
728
|
+
example: 10
|
|
729
|
+
petId:
|
|
730
|
+
type: integer
|
|
731
|
+
format: int64
|
|
732
|
+
example: 198772
|
|
733
|
+
quantity:
|
|
734
|
+
type: integer
|
|
735
|
+
format: int32
|
|
736
|
+
example: 7
|
|
737
|
+
shipDate:
|
|
738
|
+
type: string
|
|
739
|
+
format: date-time
|
|
740
|
+
status:
|
|
741
|
+
type: string
|
|
742
|
+
description: Order Status
|
|
743
|
+
enum:
|
|
744
|
+
- placed
|
|
745
|
+
- approved
|
|
746
|
+
- delivered
|
|
747
|
+
example: approved
|
|
748
|
+
complete:
|
|
749
|
+
type: boolean
|
|
750
|
+
xml:
|
|
751
|
+
name: order
|
|
752
|
+
type: object
|
|
753
|
+
Customer:
|
|
754
|
+
properties:
|
|
755
|
+
id:
|
|
756
|
+
type: integer
|
|
757
|
+
format: int64
|
|
758
|
+
example: 100000
|
|
759
|
+
username:
|
|
760
|
+
type: string
|
|
761
|
+
example: fehguy
|
|
762
|
+
address:
|
|
763
|
+
type: array
|
|
764
|
+
items:
|
|
765
|
+
$ref: '#/components/schemas/Address'
|
|
766
|
+
xml:
|
|
767
|
+
wrapped: true
|
|
768
|
+
name: addresses
|
|
769
|
+
xml:
|
|
770
|
+
name: customer
|
|
771
|
+
type: object
|
|
772
|
+
Address:
|
|
773
|
+
properties:
|
|
774
|
+
street:
|
|
775
|
+
type: string
|
|
776
|
+
example: 437 Lytton
|
|
777
|
+
city:
|
|
778
|
+
type: string
|
|
779
|
+
example: Palo Alto
|
|
780
|
+
state:
|
|
781
|
+
type: string
|
|
782
|
+
example: CA
|
|
783
|
+
zip:
|
|
784
|
+
type: string
|
|
785
|
+
example: 94301
|
|
786
|
+
xml:
|
|
787
|
+
name: address
|
|
788
|
+
type: object
|
|
789
|
+
Category:
|
|
790
|
+
x-swagger-router-model: io.swagger.petstore.model.Category
|
|
791
|
+
properties:
|
|
792
|
+
id:
|
|
793
|
+
type: integer
|
|
794
|
+
format: int64
|
|
795
|
+
example: 1
|
|
796
|
+
name:
|
|
797
|
+
type: string
|
|
798
|
+
example: Dogs
|
|
799
|
+
xml:
|
|
800
|
+
name: category
|
|
801
|
+
type: object
|
|
802
|
+
User:
|
|
803
|
+
x-swagger-router-model: io.swagger.petstore.model.User
|
|
804
|
+
properties:
|
|
805
|
+
id:
|
|
806
|
+
type: integer
|
|
807
|
+
format: int64
|
|
808
|
+
example: 10
|
|
809
|
+
username:
|
|
810
|
+
type: string
|
|
811
|
+
example: theUser
|
|
812
|
+
firstName:
|
|
813
|
+
type: string
|
|
814
|
+
example: John
|
|
815
|
+
lastName:
|
|
816
|
+
type: string
|
|
817
|
+
example: James
|
|
818
|
+
email:
|
|
819
|
+
type: string
|
|
820
|
+
example: john@email.com
|
|
821
|
+
password:
|
|
822
|
+
type: string
|
|
823
|
+
example: 12345
|
|
824
|
+
phone:
|
|
825
|
+
type: string
|
|
826
|
+
example: 12345
|
|
827
|
+
userStatus:
|
|
828
|
+
type: integer
|
|
829
|
+
format: int32
|
|
830
|
+
example: 1
|
|
831
|
+
description: User Status
|
|
832
|
+
xml:
|
|
833
|
+
name: user
|
|
834
|
+
type: object
|
|
835
|
+
Tag:
|
|
836
|
+
x-swagger-router-model: io.swagger.petstore.model.Tag
|
|
837
|
+
properties:
|
|
838
|
+
id:
|
|
839
|
+
type: integer
|
|
840
|
+
format: int64
|
|
841
|
+
name:
|
|
842
|
+
type: string
|
|
843
|
+
xml:
|
|
844
|
+
name: tag
|
|
845
|
+
type: object
|
|
846
|
+
Pet:
|
|
847
|
+
x-swagger-router-model: io.swagger.petstore.model.Pet
|
|
848
|
+
required:
|
|
849
|
+
- name
|
|
850
|
+
- photoUrls
|
|
851
|
+
properties:
|
|
852
|
+
id:
|
|
853
|
+
type: integer
|
|
854
|
+
format: int64
|
|
855
|
+
example: 10
|
|
856
|
+
name:
|
|
857
|
+
type: string
|
|
858
|
+
example: doggie
|
|
859
|
+
category:
|
|
860
|
+
$ref: '#/components/schemas/Category'
|
|
861
|
+
photoUrls:
|
|
862
|
+
type: array
|
|
863
|
+
xml:
|
|
864
|
+
wrapped: true
|
|
865
|
+
items:
|
|
866
|
+
type: string
|
|
867
|
+
xml:
|
|
868
|
+
name: photoUrl
|
|
869
|
+
tags:
|
|
870
|
+
type: array
|
|
871
|
+
xml:
|
|
872
|
+
wrapped: true
|
|
873
|
+
items:
|
|
874
|
+
$ref: '#/components/schemas/Tag'
|
|
875
|
+
xml:
|
|
876
|
+
name: tag
|
|
877
|
+
status:
|
|
878
|
+
type: string
|
|
879
|
+
description: pet status in the store
|
|
880
|
+
enum:
|
|
881
|
+
- available
|
|
882
|
+
- pending
|
|
883
|
+
- sold
|
|
884
|
+
petType:
|
|
885
|
+
type: string
|
|
886
|
+
discriminator:
|
|
887
|
+
propertyName: petType
|
|
888
|
+
xml:
|
|
889
|
+
name: pet
|
|
890
|
+
type: object
|
|
891
|
+
ApiResponse:
|
|
892
|
+
properties:
|
|
893
|
+
code:
|
|
894
|
+
type: integer
|
|
895
|
+
format: int32
|
|
896
|
+
type:
|
|
897
|
+
type: string
|
|
898
|
+
message:
|
|
899
|
+
type: string
|
|
900
|
+
xml:
|
|
901
|
+
name: '##default'
|
|
902
|
+
type: object
|
|
903
|
+
Cat:
|
|
904
|
+
allOf:
|
|
905
|
+
- $ref: '#/components/schemas/Pet'
|
|
906
|
+
- type: object
|
|
907
|
+
properties:
|
|
908
|
+
name:
|
|
909
|
+
type: string
|
|
910
|
+
Dog:
|
|
911
|
+
allOf:
|
|
912
|
+
- $ref: '#/components/schemas/Pet'
|
|
913
|
+
- type: object
|
|
914
|
+
properties:
|
|
915
|
+
bark:
|
|
916
|
+
type: string
|
|
917
|
+
Lizard:
|
|
918
|
+
allOf:
|
|
919
|
+
- $ref: '#/components/schemas/Pet'
|
|
920
|
+
- type: object
|
|
921
|
+
properties:
|
|
922
|
+
lovesRocks:
|
|
923
|
+
type: boolean
|
|
924
|
+
requestBodies:
|
|
925
|
+
Pet:
|
|
926
|
+
content:
|
|
927
|
+
application/json:
|
|
928
|
+
schema:
|
|
929
|
+
$ref: '#/components/schemas/Pet'
|
|
930
|
+
application/xml:
|
|
931
|
+
schema:
|
|
932
|
+
$ref: '#/components/schemas/Pet'
|
|
933
|
+
description: Pet object that needs to be added to the store
|
|
934
|
+
UserArray:
|
|
935
|
+
content:
|
|
936
|
+
application/json:
|
|
937
|
+
schema:
|
|
938
|
+
type: array
|
|
939
|
+
items:
|
|
940
|
+
$ref: '#/components/schemas/User'
|
|
941
|
+
description: List of user object
|
|
942
|
+
securitySchemes:
|
|
943
|
+
petstore_auth:
|
|
944
|
+
type: oauth2
|
|
945
|
+
flows:
|
|
946
|
+
implicit:
|
|
947
|
+
authorizationUrl: 'https://petstore.swagger.io/oauth/authorize'
|
|
948
|
+
scopes:
|
|
949
|
+
'write:pets': modify pets in your account
|
|
950
|
+
'read:pets': read your pets
|
|
951
|
+
api_key:
|
|
952
|
+
type: apiKey
|
|
953
|
+
name: api_key
|
|
954
|
+
in: header
|