Browse Source

v1.1

master
Nicolas Massé 6 years ago
parent
commit
0c48ff57df
  1. 19
      openapi-spec.yaml

19
openapi-spec.yaml

@ -2,7 +2,7 @@
openapi: 3.0.2 openapi: 3.0.2
info: info:
title: Petstore title: Petstore
version: 1.0.0 version: 1.1.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
@ -136,9 +136,26 @@ 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

Loading…
Cancel
Save