33 lines
791 B
JSON
33 lines
791 B
JSON
{
|
|
"post": {
|
|
"tags": ["Authentication"],
|
|
"summary": "EcoBank Authentication",
|
|
"description": "Get bearer token from EcoBank",
|
|
"operationId": "authenticate",
|
|
"requestBody": {
|
|
"required": true,
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "../../schemas/eco/AuthenticationRequest.json"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "Authentication Successful",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "../../schemas/eco/AuthenticationResponse.json"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"400": { "description": "Invalid request" },
|
|
"500": { "description": "Internal server error" }
|
|
}
|
|
}
|
|
}
|