Browse Source

v0.9

master
Nicolas Massé 6 years ago
parent
commit
557ed5c74c
  1. 41
      openapi-spec.yaml

41
openapi-spec.yaml

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

Loading…
Cancel
Save