The Loan Tracker API is a RESTful API built with Golang using the Gin framework. It allows users to manage loans, apply for new loans, and view loan statuses. Admin functionalities are also included for monitoring system activity and managing loan records.
User Management
Loan Management
Admin Functionalities
Security
POST /users/register
{ "email": "string", "password": "string" }
POST /users/verify-email
{ "token": "string" }
POST /users/reset-password
{ "email": "string" }
POST /loans/apply
{ "amount": "number", "term": "number" }
GET /loans/status
{ "loan_id": "string" }
GET /admin/logs
PUT /admin/loans/{loan_id}
{ "status": "string" }
Clone the repository:
git clone https://github.com/yourusername/loan-tracker-api.git
Navigate to the project directory:
cd loan-tracker-api
Install the necessary dependencies:
go mod tidy
Configure environment variables as needed. Create a config.yaml
file based on config_sample.yaml
.
Run the application:
go run main.go
API documentation can be accessed using Postman. Import the provided Postman collection file located in the postman
For any questions or issues, please contact yeneineh seiba.