This Django REST framework API calculates credit scores based on various credit risk parameters. Users can input both categorical and numerical data to obtain a credit score.
- Accepts credit risk parameters, including both categorical and numerical data.
- Calculates credit scores based on input data.
- Provides a RESTful API for interacting with the application.
- Customizable and extensible for different credit scoring models.
Before you begin, ensure you have met the following requirements:
- Python 3.x
- Django
- Django REST framework
- Docker (optional for containerization)
-
Clone the repository:
git clone https://github.com/harvey-allen/credit-risk-api.git cd credit-risk-api
-
Install project dependencies:
pip install -r requirements.txt
-
Migrate the database:
python manage.py migrate
-
Create a superuser account for admin access (optional):
python manage.py createsuperuser
-
python manage.py runserver
python manage.py runserver
- Create credit risk parameter records using the Django admin interface or API.
- Use the API to calculate credit scores based on the provided data.
- List credit parameters:
/api/calculate/
- Create credit parameter:
/api/calculate/create/
For detailed API documentation, refer to the API documentation (link here).
Contributions are welcome!
This project is licensed under the MIT License.