|
|
@ -1,8 +1,8 @@ |
|
|
--- |
|
|
--- |
|
|
openapi: 3.0.2 |
|
|
openapi: 3.0.2 |
|
|
info: |
|
|
info: |
|
|
title: Petstore |
|
|
title: Petstore API |
|
|
version: 2.0.0 |
|
|
version: 0.9.0 |
|
|
description: |- |
|
|
description: |- |
|
|
A sample API that uses a petstore as an example to demonstrate features |
|
|
A sample API that uses a petstore as an example to demonstrate features |
|
|
in the OpenAPI 3.0 specification |
|
|
in the OpenAPI 3.0 specification |
|
|
@ -43,7 +43,7 @@ paths: |
|
|
schema: |
|
|
schema: |
|
|
$ref: '#/components/schemas/Error' |
|
|
$ref: '#/components/schemas/Error' |
|
|
description: unexpected error |
|
|
description: unexpected error |
|
|
200: |
|
|
"200": |
|
|
content: |
|
|
content: |
|
|
application/json: |
|
|
application/json: |
|
|
schema: |
|
|
schema: |
|
|
@ -89,7 +89,7 @@ paths: |
|
|
schema: |
|
|
schema: |
|
|
$ref: '#/components/schemas/Error' |
|
|
$ref: '#/components/schemas/Error' |
|
|
description: unexpected error |
|
|
description: unexpected error |
|
|
200: |
|
|
"200": |
|
|
content: |
|
|
content: |
|
|
application/json: |
|
|
application/json: |
|
|
schema: |
|
|
schema: |
|
|
@ -123,7 +123,7 @@ paths: |
|
|
schema: |
|
|
schema: |
|
|
$ref: '#/components/schemas/Error' |
|
|
$ref: '#/components/schemas/Error' |
|
|
description: unexpected error |
|
|
description: unexpected error |
|
|
200: |
|
|
"200": |
|
|
content: |
|
|
content: |
|
|
application/json: |
|
|
application/json: |
|
|
schema: |
|
|
schema: |
|
|
@ -136,26 +136,9 @@ paths: |
|
|
tag: cat |
|
|
tag: cat |
|
|
description: pet response |
|
|
description: pet response |
|
|
operationId: findPetById |
|
|
operationId: findPetById |
|
|
summary: Update a pet |
|
|
|
|
|
description: |- |
|
|
description: |- |
|
|
Returns a user based on a single ID, if the user does not have |
|
|
Returns a user based on a single ID, if the user does not have |
|
|
access to the pet |
|
|
access to the pet |
|
|
put: |
|
|
|
|
|
requestBody: |
|
|
|
|
|
content: |
|
|
|
|
|
application/json: |
|
|
|
|
|
schema: |
|
|
|
|
|
$ref: '#/components/schemas/Pet' |
|
|
|
|
|
required: true |
|
|
|
|
|
responses: |
|
|
|
|
|
200: |
|
|
|
|
|
content: |
|
|
|
|
|
application/json: |
|
|
|
|
|
schema: |
|
|
|
|
|
$ref: '#/components/schemas/Pet' |
|
|
|
|
|
description: OK |
|
|
|
|
|
operationId: UpdatePet |
|
|
|
|
|
summary: Update a pet |
|
|
|
|
|
delete: |
|
|
delete: |
|
|
parameters: |
|
|
parameters: |
|
|
- name: id |
|
|
- name: id |
|
|
@ -172,7 +155,7 @@ paths: |
|
|
schema: |
|
|
schema: |
|
|
$ref: '#/components/schemas/Error' |
|
|
$ref: '#/components/schemas/Error' |
|
|
description: unexpected error |
|
|
description: unexpected error |
|
|
204: |
|
|
"204": |
|
|
description: pet deleted |
|
|
description: pet deleted |
|
|
operationId: deletePet |
|
|
operationId: deletePet |
|
|
description: deletes a single pet based on the ID supplied |
|
|
description: deletes a single pet based on the ID supplied |
|
|
@ -212,15 +195,3 @@ components: |
|
|
type: integer |
|
|
type: integer |
|
|
message: |
|
|
message: |
|
|
type: string |
|
|
type: string |
|
|
securitySchemes: |
|
|
|
|
|
oidc: |
|
|
|
|
|
flows: |
|
|
|
|
|
clientCredentials: |
|
|
|
|
|
tokenUrl: https://filled.later/ |
|
|
|
|
|
refreshUrl: https://filled.later/ |
|
|
|
|
|
scopes: |
|
|
|
|
|
openid: openid |
|
|
|
|
|
type: oauth2 |
|
|
|
|
|
security: |
|
|
|
|
|
- oidc: |
|
|
|
|
|
- openid |
|
|
|
|
|
|