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:
parent
c2e6ee097c
commit
be1f02c414
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user