From 0c48ff57df613dcc69fbfc086898f92a9da9de71 Mon Sep 17 00:00:00 2001 From: Nicolas MASSE Date: Tue, 17 Sep 2019 06:32:21 +0200 Subject: [PATCH] v1.1 --- openapi-spec.yaml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/openapi-spec.yaml b/openapi-spec.yaml index bd519c8..9c9f729 100644 --- a/openapi-spec.yaml +++ b/openapi-spec.yaml @@ -2,7 +2,7 @@ openapi: 3.0.2 info: title: Petstore - version: 1.0.0 + version: 1.1.0 description: |- A sample API that uses a petstore as an example to demonstrate features in the OpenAPI 3.0 specification @@ -136,9 +136,26 @@ 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