refactor(api): default response -> 500, Unexepected error -> Internal error
This commit is contained in:
parent
32038981f6
commit
bf08fc2e71
1 changed files with 32 additions and 32 deletions
|
|
@ -31,8 +31,8 @@ paths:
|
|||
type: array
|
||||
items:
|
||||
$ref: "#/components/schemas/Training"
|
||||
default:
|
||||
description: Unexpected error
|
||||
"500":
|
||||
description: Internal error
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
|
|
@ -61,8 +61,8 @@ paths:
|
|||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ProblemDetails"
|
||||
default:
|
||||
description: Unexpected error
|
||||
"500":
|
||||
description: Internal error
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
|
|
@ -96,8 +96,8 @@ paths:
|
|||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ProblemDetails"
|
||||
default:
|
||||
description: Unexpected error
|
||||
"500":
|
||||
description: Internal error
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
|
|
@ -142,8 +142,8 @@ paths:
|
|||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ProblemDetails"
|
||||
default:
|
||||
description: Unexpected error
|
||||
"500":
|
||||
description: Internal error
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
|
|
@ -173,8 +173,8 @@ paths:
|
|||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ProblemDetails"
|
||||
default:
|
||||
description: Unexpected error
|
||||
"500":
|
||||
description: Internal error
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
|
|
@ -205,8 +205,8 @@ paths:
|
|||
type: array
|
||||
items:
|
||||
$ref: "#/components/schemas/TrainingDate"
|
||||
default:
|
||||
description: Unexpected error
|
||||
"500":
|
||||
description: Internal error
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
|
|
@ -246,8 +246,8 @@ paths:
|
|||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ProblemDetails"
|
||||
default:
|
||||
description: Unexpected error
|
||||
"500":
|
||||
description: Internal error
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
|
|
@ -287,8 +287,8 @@ paths:
|
|||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ProblemDetails"
|
||||
default:
|
||||
description: Unexpected error
|
||||
"500":
|
||||
description: Internal error
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
|
|
@ -342,8 +342,8 @@ paths:
|
|||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ProblemDetails"
|
||||
default:
|
||||
description: Unexpected error
|
||||
"500":
|
||||
description: Internal error
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
|
|
@ -383,8 +383,8 @@ paths:
|
|||
type: array
|
||||
items:
|
||||
$ref: "#/components/schemas/TrainingDateAttendee"
|
||||
default:
|
||||
description: Unexpected error
|
||||
"500":
|
||||
description: Internal error
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
|
|
@ -427,8 +427,8 @@ paths:
|
|||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ProblemDetails"
|
||||
default:
|
||||
description: Unexpected error
|
||||
"500":
|
||||
description: Internal error
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
|
|
@ -477,8 +477,8 @@ paths:
|
|||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ProblemDetails"
|
||||
default:
|
||||
description: Unexpected error
|
||||
"500":
|
||||
description: Internal error
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
|
|
@ -537,8 +537,8 @@ paths:
|
|||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ProblemDetails"
|
||||
default:
|
||||
description: Unexpected error
|
||||
"500":
|
||||
description: Internal error
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
|
|
@ -578,8 +578,8 @@ paths:
|
|||
type: array
|
||||
items:
|
||||
$ref: "#/components/schemas/TrainingFeedback"
|
||||
default:
|
||||
description: Unexpected error
|
||||
"500":
|
||||
description: Internal error
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
|
|
@ -610,8 +610,8 @@ paths:
|
|||
type: array
|
||||
items:
|
||||
$ref: "#/components/schemas/TrainingFeedback"
|
||||
default:
|
||||
description: Unexpected error
|
||||
"500":
|
||||
description: Internal error
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
|
|
@ -657,8 +657,8 @@ paths:
|
|||
$ref: "#/components/schemas/Training"
|
||||
date:
|
||||
$ref: "#/components/schemas/TrainingDate"
|
||||
default:
|
||||
description: Unexpected error
|
||||
"500":
|
||||
description: Internal error
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
|
|
|
|||
Reference in a new issue