1
0
mirror of https://github.com/enpaul/kodak.git synced 2024-11-11 00:57:00 +00:00

Update openapi spec to include size rejection error for upload

Update upload method from put to post
This commit is contained in:
Ethan Paul 2020-09-21 17:18:52 -04:00
parent c2e6ee097c
commit be1f02c414
No known key found for this signature in database
GPG Key ID: C5F5542B54A4D9C6

View File

@ -38,7 +38,7 @@ paths:
schema: schema:
type: object type: object
/image/: /image/:
put: post:
summary: Upload an image to the server summary: Upload an image to the server
operationId: ImageUpload operationId: ImageUpload
tags: ["image"] tags: ["image"]
@ -52,6 +52,13 @@ paths:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/Error" $ref: "#/components/schemas/Error"
'413':
description: Image is too large for upload
headers: *headers-default
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
'500': '500':
$ref: "#/components/responses/InternalServerError" $ref: "#/components/responses/InternalServerError"
options: options: