1
0
mirror of https://github.com/enpaul/kodak.git synced 2024-12-28 10:43:30 +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:
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: