bddce977a1
# Conflicts: # app/config.py
250 lines
6.6 KiB
JSON
250 lines
6.6 KiB
JSON
{
|
|
"openapi": "3.0.3",
|
|
"info": {
|
|
"title": "Swagger OfficeCore - OpenAPI 3.0",
|
|
"description": "This is a Simbrella FirstAdvance BackOffice Server with the OpenAPI 3.0 specification. \n\n\nSome useful links:\n- [Web Simulated Demo Page](https://digifi-salaryloan.chiefsoft.net/)\n- [Web Management Support Portal](https://digifi-office.chiefsoft.net/auth/login)",
|
|
"termsOfService": "http://swagger.io/terms/",
|
|
"contact": {
|
|
"email": "support@chiefsoft.com"
|
|
},
|
|
"license": {
|
|
"name": "Apache 2.0",
|
|
"url": "http://www.apache.org/licenses/LICENSE-2.0.html"
|
|
},
|
|
"version": "1.0.11"
|
|
},
|
|
"servers": [
|
|
{
|
|
"url": "http://localhost:4300"
|
|
},
|
|
{
|
|
"url": "http://localhost:4700"
|
|
},
|
|
{
|
|
"url": "http://www.simbrellang.net:4300"
|
|
},
|
|
{
|
|
"url": "http://www.simbrellang.net:4700"
|
|
},
|
|
{
|
|
"url": "https://backoffice-apidev.simbrellang.net"
|
|
},
|
|
{
|
|
"url": "http://www.simbrellang.net:14700"
|
|
},
|
|
{
|
|
"url": "http://10.10.11.17:4300"
|
|
},
|
|
{
|
|
"url": "http://10.10.11.17:4700"
|
|
},
|
|
{
|
|
"url": "http://10.2.249.133:4700"
|
|
}
|
|
],
|
|
"tags": [
|
|
{
|
|
"name": "Authorize",
|
|
"description": "This feature will be used for authorizing customers.",
|
|
"externalDocs": {
|
|
"description": "Find out more",
|
|
"url": "https://www.simbrellang.net"
|
|
}
|
|
},
|
|
{
|
|
"name": "Loans",
|
|
"description": "Get all loans with optional filtering.",
|
|
"externalDocs": {
|
|
"description": "Find out more",
|
|
"url": "https://www.simbrellang.net"
|
|
}
|
|
},
|
|
{
|
|
"name": "Transactions",
|
|
"description": "Get all transactions with optional filtering.",
|
|
"externalDocs": {
|
|
"description": "Find out more",
|
|
"url": "https://www.simbrellang.net"
|
|
}
|
|
},
|
|
{
|
|
"name": "Repayments",
|
|
"description": "Get all repayments with optional filtering.",
|
|
"externalDocs": {
|
|
"description": "Find out more",
|
|
"url": "https://www.simbrellang.net"
|
|
}
|
|
},
|
|
{
|
|
"name": "Repayment Schedules",
|
|
"description": "Get all loan repayment schedules with optional filtering.",
|
|
"externalDocs": {
|
|
"description": "Find out more",
|
|
"url": "https://www.simbrellang.net"
|
|
}
|
|
},
|
|
{
|
|
"name": "Repayment Data",
|
|
"description": "Get all repayment data with optional filtering.",
|
|
"externalDocs": {
|
|
"description": "Find out more",
|
|
"url": "https://www.simbrellang.net"
|
|
}
|
|
},
|
|
{
|
|
"name": "Offers",
|
|
"description": "Get all offers with optional filtering.",
|
|
"externalDocs": {
|
|
"description": "Find out more",
|
|
"url": "https://www.simbrellang.net"
|
|
}
|
|
},
|
|
{
|
|
"name": "Transaction Offers",
|
|
"description": "Get all transaction offers with optional filtering.",
|
|
"externalDocs": {
|
|
"description": "Find out more",
|
|
"url": "https://www.simbrellang.net"
|
|
}
|
|
},
|
|
{
|
|
"name": "Health",
|
|
"description": "System health check including DB status."
|
|
}
|
|
],
|
|
"paths": {
|
|
"/login": {
|
|
"$ref": "../swagger/paths/Login.json"
|
|
},
|
|
"/dashboard": {
|
|
"$ref": "../swagger/paths/Dashboard.json"
|
|
},
|
|
"/Authorize": {
|
|
"$ref": "../swagger/paths/Authorize.json"
|
|
},
|
|
"/loans": {
|
|
"$ref": "../swagger/paths/Loans.json"
|
|
},
|
|
"/transactions": {
|
|
"$ref": "../swagger/paths/Transactions.json"
|
|
},
|
|
"/repayments": {
|
|
"$ref": "../swagger/paths/Repayments.json"
|
|
},
|
|
"/loan-charges": {
|
|
"$ref": "../swagger/paths/LoanCharges.json"
|
|
},
|
|
"/repayment-data": {
|
|
"$ref": "../swagger/paths/RepaymentData.json"
|
|
},
|
|
"/repayment-schedules": {
|
|
"$ref": "../swagger/paths/RepaymentSchedules.json"
|
|
},
|
|
"/offers": {
|
|
"$ref": "../swagger/paths/Offers.json"
|
|
},
|
|
"/transaction-offers": {
|
|
"$ref": "../swagger/paths/TransactionOffers.json"
|
|
},
|
|
"/health": {
|
|
"get": {
|
|
"tags": [
|
|
"Health"
|
|
],
|
|
"summary": "Health Check",
|
|
"description": "Returns service health information including DB connection status.",
|
|
"responses": {
|
|
"200": {
|
|
"description": "Health check successful",
|
|
"content": {
|
|
"application/json": {
|
|
"example": {
|
|
"status": "ok",
|
|
"db_status": "Connection Successful",
|
|
"error": []
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"500": {
|
|
"description": "Health check failed",
|
|
"content": {
|
|
"application/json": {
|
|
"example": {
|
|
"status": "ok",
|
|
"db_status": "Connection Failed",
|
|
"error": [
|
|
"could not connect to server: Connection refused"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"components": {
|
|
"schemas": {
|
|
"ApiResponse": {
|
|
"$ref": "../swagger/schemas/ApiResponse.json"
|
|
},
|
|
"AuthorizeResponse": {
|
|
"$ref": "../swagger/schemas/AuthorizeResponse.json"
|
|
},
|
|
"AuthorizeRequest": {
|
|
"$ref": "../swagger/schemas/AuthorizeRequest.json"
|
|
},
|
|
"LoginRequest": {
|
|
"$ref": "../swagger/schemas/LoginRequest.json"
|
|
},
|
|
"LoginResponse": {
|
|
"$ref": "../swagger/schemas/LoginResponse.json"
|
|
},
|
|
"DashboardResponse": {
|
|
"$ref": "../swagger/schemas/DashboardResponse.json"
|
|
},
|
|
"LoansResponse": {
|
|
"$ref": "../swagger/schemas/LoansResponse.json"
|
|
},
|
|
"TransactionsResponse": {
|
|
"$ref": "../swagger/schemas/TransactionsResponse.json"
|
|
},
|
|
"RepaymentsResponse": {
|
|
"$ref": "../swagger/schemas/RepaymentsResponse.json"
|
|
},
|
|
"RepaymentDataResponse": {
|
|
"$ref": "../swagger/schemas/RepaymentDataResponse.json"
|
|
},
|
|
"LoanChargesResponse": {
|
|
"$ref": "../swagger/schemas/LoanChargesResponse.json"
|
|
},
|
|
"RepaymentSchedulesResponse": {
|
|
"$ref": "../swagger/schemas/RepaymentSchedulesResponse.json"
|
|
},
|
|
"OffersResponse": {
|
|
"$ref": "../swagger/schemas/OffersResponse.json"
|
|
},
|
|
"TransactionOffersResponse": {
|
|
"$ref": "../swagger/schemas/TransactionOffersResponse.json"
|
|
}
|
|
},
|
|
"securitySchemes": {
|
|
"basicAuth": {
|
|
"type": "http",
|
|
"scheme": "basic"
|
|
},
|
|
"bearerAuth": {
|
|
"type": "http",
|
|
"scheme": "bearer",
|
|
"bearerFormat": "JWT"
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"basicAuth": [],
|
|
"bearerAuth": []
|
|
}
|
|
]
|
|
} |