65 lines
2.0 KiB
JSON
65 lines
2.0 KiB
JSON
{
|
|
"post": {
|
|
"tags": [
|
|
"LoanStatus"
|
|
],
|
|
"summary": "Get information about customer's existing loans",
|
|
"description": "Loan Information Request to retrieve details about customer's existing loans",
|
|
"operationId": "loanInformation",
|
|
"requestBody": {
|
|
"description": "Customer information for loan details",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "../schemas/LoanStatusRequest.json"
|
|
}
|
|
},
|
|
"application/xml": {
|
|
"schema": {
|
|
"$ref": "../schemas/LoanStatusRequest.json"
|
|
}
|
|
},
|
|
"application/x-www-form-urlencoded": {
|
|
"schema": {
|
|
"$ref": "../schemas/LoanStatusRequest.json"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful operation",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "../schemas/LoanStatusResponse.json"
|
|
}
|
|
},
|
|
"application/xml": {
|
|
"schema": {
|
|
"$ref": "../schemas/LoanStatusResponse.json"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"400": {
|
|
"description": "Invalid request parameters"
|
|
},
|
|
"401": {
|
|
"description": "Authentication failed"
|
|
},
|
|
"404": {
|
|
"description": "No loans found"
|
|
},
|
|
"500": {
|
|
"description": "Internal server error"
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"basic_auth": []
|
|
}
|
|
]
|
|
}
|
|
} |