65 lines
1.9 KiB
JSON
65 lines
1.9 KiB
JSON
{
|
|
"post": {
|
|
"tags": [
|
|
"Repayment"
|
|
],
|
|
"summary": "Process a loan repayment request",
|
|
"description": "Repayment Request to initiate loan repayment",
|
|
"operationId": "repayment",
|
|
"requestBody": {
|
|
"description": "Repayment request details",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "../schemas/RepaymentRequest.json"
|
|
}
|
|
},
|
|
"application/xml": {
|
|
"schema": {
|
|
"$ref": "../schemas/RepaymentRequest.json"
|
|
}
|
|
},
|
|
"application/x-www-form-urlencoded": {
|
|
"schema": {
|
|
"$ref": "../schemas/RepaymentRequest.json"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "Repayment Successful",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "../schemas/RepaymentResponse.json"
|
|
}
|
|
},
|
|
"application/xml": {
|
|
"schema": {
|
|
"$ref": "../schemas/RepaymentResponse.json"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"400": {
|
|
"description": "Invalid request parameters"
|
|
},
|
|
"401": {
|
|
"description": "Authentication failed"
|
|
},
|
|
"404": {
|
|
"description": "Debt not found"
|
|
},
|
|
"500": {
|
|
"description": "Internal server error"
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"basic_auth": []
|
|
}
|
|
]
|
|
}
|
|
} |