This is a Lending repayment API that allows customers to:
- Request for loans
- Repay Loans(Partial/full repayments)
- Clear Defaulted/old loans that have been there for more than 6 months
This app is built using Java(Spring Boot)
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
What things you need to install the software and how to install them
-
Java 17 sdk
-
Postman
A step by step series of examples that tell you how to get a development environment running
- Clone the project repository
HTTPS: git clone https://github.com/BILLthebuilder/lending-repayment-api.git
SSH: git clone [email protected]:BILLthebuilder/lending-repayment-api.git
- Change the directory
cd loan-repayment-api
- To compile a local build
./mvnw clean compile package
- To run a regular development build
java -jar /your_clone_directory/loan-repayment-api/target/0.0.1.jar
Request | Endpoint | Function |
---|---|---|
POST | /api/v1/auth/signup |
Register a new user |
POST | /api/v1/auth/signin |
Login a registered user |
Request | Endpoint | Function |
---|---|---|
POST | /api/v1/loans/request |
Create a loan request |
PUT | /api/v1/loans/topup |
Topup an existing loan |
PUT | /api/v1/loans/repay |
Repay a loan |
DELETE | /api/v1/loans/clear |
Clear old/defaulted loans |
/api/v1/loans/x |
||
/api/v1/loans/x |
||
/api/v1/loans/x |
||
/api/v1/loans/x |
./mvnw test
- Coming soon
- Spring - The web framework used
-
Version 1(v1) of the API
-
To view the swagger docs visit the below url after loading the project locally.
-
Remember to change the port accordingly
http://localhost:8081/swagger-ui/index.html