PMT-16: Add More Errors to Endpoint Specification
Signed-off-by: Dominik Säume <Dominik.Saeume@hmmh.de>
This commit is contained in:
parent
36c64b49a1
commit
4940da7b40
1 changed files with 27 additions and 2 deletions
29
api/pmt.yml
29
api/pmt.yml
|
@ -77,12 +77,30 @@ components:
|
|||
text/plain:
|
||||
schema:
|
||||
type: string
|
||||
Conflict:
|
||||
description: "Conflict"
|
||||
content:
|
||||
text/plain:
|
||||
schema:
|
||||
type: string
|
||||
UnprocessableContent:
|
||||
description: "Unprocessable Content"
|
||||
content:
|
||||
text/plain:
|
||||
schema:
|
||||
type: string
|
||||
InternalError:
|
||||
description: "Internal Server Error"
|
||||
content:
|
||||
text/plain:
|
||||
schema:
|
||||
type: string
|
||||
ServiceUnavailable:
|
||||
description: "Service Unavailable"
|
||||
content:
|
||||
text/plain:
|
||||
schema:
|
||||
type: string
|
||||
paths:
|
||||
/project:
|
||||
get:
|
||||
|
@ -118,9 +136,16 @@ paths:
|
|||
$ref: "#/components/responses/Unauthorized"
|
||||
404:
|
||||
$ref: "#/components/responses/NotFound"
|
||||
409:
|
||||
$ref: "#/components/responses/Conflict"
|
||||
422:
|
||||
$ref: "#/components/responses/UnprocessableContent"
|
||||
500:
|
||||
$ref: "#/components/responses/InternalError"
|
||||
|
||||
503:
|
||||
$ref: "#/components/responses/ServiceUnavailable"
|
||||
|
||||
|
||||
/project/{id}:
|
||||
delete:
|
||||
operationId: "deleteProject"
|
||||
|
@ -136,7 +161,7 @@ paths:
|
|||
204:
|
||||
description: "Deletes a specific Project"
|
||||
401:
|
||||
$ref: "#/components/responses/UnAuthorized"
|
||||
$ref: "#/components/responses/Unauthorized"
|
||||
404:
|
||||
description: "Project not found"
|
||||
content:
|
||||
|
|
Loading…
Reference in a new issue