Add valid examples for 400/404/500
This commit is contained in:
parent
204d347456
commit
3c711c091a
@ -92,18 +92,51 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/components/schemas/ErrorResponse"
|
$ref: "#/components/schemas/ErrorResponse"
|
||||||
|
examples:
|
||||||
|
Invalid UUID:
|
||||||
|
summary: Invalid UUID
|
||||||
|
value:
|
||||||
|
errors:
|
||||||
|
code: "0x03000103"
|
||||||
|
data: [
|
||||||
|
"geen-uuid"
|
||||||
|
]
|
||||||
|
message: "The provided scTat is not a valid UUID"
|
||||||
|
exceptionClassName: "PadpConstraintViolationException"
|
||||||
|
exceptionStackTrace: "not available because debug mode is turned off"
|
||||||
"404":
|
"404":
|
||||||
description: Not Found
|
description: Not Found
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/components/schemas/ErrorResponse"
|
$ref: "#/components/schemas/ErrorResponse"
|
||||||
|
examples:
|
||||||
|
No PAD found for xTAT:
|
||||||
|
summary: No PAD found for xTAT
|
||||||
|
value:
|
||||||
|
errors:
|
||||||
|
code: "0x03000105"
|
||||||
|
data: []
|
||||||
|
message: "Transit account not found"
|
||||||
|
exceptionClassName: "PadpEntityNotFoundException"
|
||||||
|
exceptionStackTrace: "not available because debug mode is turned off"
|
||||||
"500":
|
"500":
|
||||||
description: Internal Server Error
|
description: Internal Server Error
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/components/schemas/ErrorResponse"
|
$ref: "#/components/schemas/ErrorResponse"
|
||||||
|
examples:
|
||||||
|
Unknown xTAT:
|
||||||
|
summary: Unknown xTAT
|
||||||
|
value:
|
||||||
|
errors:
|
||||||
|
code: "0x00000001"
|
||||||
|
data: null
|
||||||
|
message: "400 : \"{\"errorMessage\":{\"referenceId\":\"076f0de4-df33-42a3-add0-def971ab6679\",\"message\":\"Unknown external transit account token.\"},\"businessExceptions\":[{\"code\":\"TM0207\",\"message\":\"Unknown external transit account token.\"}]}\""
|
||||||
|
exceptionClassName: "BadRequest"
|
||||||
|
exceptionStackTrace: "not available because debug mode is turned off"
|
||||||
|
|
||||||
/internal/b2b-client-authentication/v1/token/idp/b2b-access-token:
|
/internal/b2b-client-authentication/v1/token/idp/b2b-access-token:
|
||||||
servers:
|
servers:
|
||||||
- url: https://only-for-internal-use.com
|
- url: https://only-for-internal-use.com
|
||||||
@ -265,18 +298,50 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/components/schemas/ErrorResponse"
|
$ref: "#/components/schemas/ErrorResponse"
|
||||||
|
examples:
|
||||||
|
Invalid UUID:
|
||||||
|
summary: Invalid UUID
|
||||||
|
value:
|
||||||
|
errors:
|
||||||
|
code: "0x03000103"
|
||||||
|
data: [
|
||||||
|
"geen-uuid"
|
||||||
|
]
|
||||||
|
message: "The provided scTat is not a valid UUID"
|
||||||
|
exceptionClassName: "PadpConstraintViolationException"
|
||||||
|
exceptionStackTrace: "not available because debug mode is turned off"
|
||||||
"404":
|
"404":
|
||||||
description: Not Found
|
description: Not Found
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/components/schemas/ErrorResponse"
|
$ref: "#/components/schemas/ErrorResponse"
|
||||||
|
examples:
|
||||||
|
No PAD found for xTAT:
|
||||||
|
summary: No PAD found for xTAT
|
||||||
|
value:
|
||||||
|
errors:
|
||||||
|
code: "0x03000105"
|
||||||
|
data: []
|
||||||
|
message: "Transit account not found"
|
||||||
|
exceptionClassName: "PadpEntityNotFoundException"
|
||||||
|
exceptionStackTrace: "not available because debug mode is turned off"
|
||||||
"500":
|
"500":
|
||||||
description: Internal Server Error
|
description: Internal Server Error
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/components/schemas/ErrorResponse"
|
$ref: "#/components/schemas/ErrorResponse"
|
||||||
|
examples:
|
||||||
|
Unknown xTAT:
|
||||||
|
summary: Unknown xTAT
|
||||||
|
value:
|
||||||
|
errors:
|
||||||
|
code: "0x00000001"
|
||||||
|
data: null
|
||||||
|
message: "400 : \"{\"errorMessage\":{\"referenceId\":\"076f0de4-df33-42a3-add0-def971ab6679\",\"message\":\"Unknown external transit account token.\"},\"businessExceptions\":[{\"code\":\"TM0207\",\"message\":\"Unknown external transit account token.\"}]}\""
|
||||||
|
exceptionClassName: "BadRequest"
|
||||||
|
exceptionStackTrace: "not available because debug mode is turned off"
|
||||||
components:
|
components:
|
||||||
schemas:
|
schemas:
|
||||||
AdministrativeData:
|
AdministrativeData:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user