add error response of endpoint
This commit is contained in:
parent
ec9f080193
commit
2dc592b914
25
input.yml
25
input.yml
@ -27,20 +27,39 @@ paths:
|
||||
format: binary
|
||||
responses:
|
||||
'200':
|
||||
description: Status message
|
||||
description: OK Message
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: array
|
||||
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:
|
||||
schemas:
|
||||
Response:
|
||||
OK:
|
||||
properties:
|
||||
status:
|
||||
type: string
|
||||
description: "Status message from backend."
|
||||
required:
|
||||
- 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