add error response of endpoint

This commit is contained in:
Torma Kristóf 2020-03-25 02:16:36 +01:00
parent ec9f080193
commit 2dc592b914
1 changed files with 23 additions and 4 deletions

View File

@ -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
- status
Error:
properties:
status:
type: string
description: "Status message from backend."
message:
type: string
description: "Error message"
required:
- status
- message