@loan-risk/http-api
v1.0.1
Published
Express HTTP API for loan risk analysis engine
Maintainers
Readme
@loan-risk/http-api
Express HTTP API for the Loan Risk Analyzer ecosystem.
Features
- Express server
- Loan risk analysis endpoint
- Health endpoint
- Swagger documentation
- TypeScript support
Installation
pnpm add @loan-risk/http-apiDevelopment
pnpm --filter @loan-risk/http-api devAPI Endpoints
Health Check
GET /healthAnalyze Loan Risk
POST /analyzeExample Request
{
"fullName": "Aparna Nikam",
"age": 28,
"monthlyIncome": 90000,
"monthlyEMI": 15000,
"requestedLoanAmount": 500000,
"creditScore": 760,
"employmentType": "SALARIED"
}Example Response
{
"success": true,
"data": {
"score": 85,
"riskLevel": "LOW",
"approved": true
}
}Swagger Docs
http://localhost:4000/docsLicense
MIT
