From 50dc67acafb62d44f3d5633ba58b7d35d5915702 Mon Sep 17 00:00:00 2001 From: Nathan Fischer Date: Mon, 22 Feb 2021 16:16:44 -0800 Subject: [PATCH] updatePetWithForm using patch --- src/main/resources/openapi.yaml | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/src/main/resources/openapi.yaml b/src/main/resources/openapi.yaml index 04a65349..dd14801a 100644 --- a/src/main/resources/openapi.yaml +++ b/src/main/resources/openapi.yaml @@ -221,7 +221,7 @@ paths: - petstore_auth: - 'write:pets' - 'read:pets' - post: + patch: tags: - pet summary: Updates a pet in the store with form data @@ -235,16 +235,18 @@ paths: schema: type: integer format: int64 - - name: name - in: query - description: Name of pet that needs to be updated - schema: - type: string - - name: status - in: query - description: Status of pet that needs to be updated - schema: - type: string + requestBody: + content: + application/x-www-form-urlencoded: + schema: + type: object + properties: + name: + type: string + description: Name of pet that needs to be updated + status: + type: string + description: Status of pet that needs to be updated responses: '405': description: Invalid input