mirror of
https://github.com/enpaul/kodak.git
synced 2024-11-23 15:07:13 +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:
|
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:
|
||||||
|
Loading…
Reference in New Issue
Block a user