From be1f02c414945df827d983ee26ed224f4bc32293 Mon Sep 17 00:00:00 2001 From: Ethan Paul <24588726+enpaul@users.noreply.github.com> Date: Mon, 21 Sep 2020 17:18:52 -0400 Subject: [PATCH] Update openapi spec to include size rejection error for upload Update upload method from put to post --- openapi.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/openapi.yaml b/openapi.yaml index 4cfbb67..b878129 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -38,7 +38,7 @@ paths: schema: type: object /image/: - put: + post: summary: Upload an image to the server operationId: ImageUpload tags: ["image"] @@ -52,6 +52,13 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" + '413': + description: Image is too large for upload + headers: *headers-default + content: + application/json: + schema: + $ref: "#/components/schemas/Error" '500': $ref: "#/components/responses/InternalServerError" options: