add error response of endpoint
This commit is contained in:
parent
ec9f080193
commit
2dc592b914
27
input.yml
27
input.yml
@ -27,20 +27,39 @@ paths:
|
|||||||
format: binary
|
format: binary
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: Status message
|
description: OK Message
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/Response'
|
$ref: '#/components/schemas/OK'
|
||||||
|
'416':
|
||||||
|
description: Media type error
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/Error'
|
||||||
|
|
||||||
components:
|
components:
|
||||||
schemas:
|
schemas:
|
||||||
Response:
|
OK:
|
||||||
properties:
|
properties:
|
||||||
status:
|
status:
|
||||||
type: string
|
type: string
|
||||||
description: "Status message from backend."
|
description: "Status message from backend."
|
||||||
required:
|
required:
|
||||||
- status
|
- status
|
||||||
|
Error:
|
||||||
|
properties:
|
||||||
|
status:
|
||||||
|
type: string
|
||||||
|
description: "Status message from backend."
|
||||||
|
message:
|
||||||
|
type: string
|
||||||
|
description: "Error message"
|
||||||
|
required:
|
||||||
|
- status
|
||||||
|
- message
|
Loading…
Reference in New Issue
Block a user