From 2cce63a6e44f35f53d157390388cab17f0b83903 Mon Sep 17 00:00:00 2001 From: Josh Hayes-Sheen Date: Sat, 18 Mar 2023 13:50:15 -0400 Subject: [PATCH] Add shortcut to pet status --- petstore-openapi.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/petstore-openapi.yaml b/petstore-openapi.yaml index 70ece9a..bcec90c 100644 --- a/petstore-openapi.yaml +++ b/petstore-openapi.yaml @@ -279,6 +279,39 @@ paths: - petstore_auth: - 'write:pets' - 'read:pets' + '/pet/{petId}/status': + parameters: + - schema: + type: integer + name: petId + in: path + required: true + get: + summary: Your GET endpoint + tags: [] + responses: + '200': + description: OK + content: + application/json: + schema: + type: object + example: sleeping + properties: + status: + type: string + x-stoplight: + id: yic9zn6ngfxpu + required: + - status + '404': + description: Not Found + operationId: getPetStatusById + description: Returns the status of a single pet + security: + - api_key: [] + - petstore_auth: + - 'read:pets' '/pet/{petId}/uploadImage': post: tags: