Skip to content

harvey-allen/credit-risk-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django REST Credit Scoring API

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.

Table of Contents

Features

  • 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.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Python 3.x
  • Django
  • Django REST framework
  • Docker (optional for containerization)

Getting Started

Installation

  1. Clone the repository:

    git clone https://github.com/harvey-allen/credit-risk-api.git
    cd credit-risk-api
    
  2. Install project dependencies:

    pip install -r requirements.txt
    

Running the App

  1. Migrate the database:

    python manage.py migrate
    
  2. Create a superuser account for admin access (optional):

    python manage.py createsuperuser
    
  3. python manage.py runserver

    python manage.py runserver
    

Usage

  1. Create credit risk parameter records using the Django admin interface or API.
  2. Use the API to calculate credit scores based on the provided data.

API Endpoints

  • List credit parameters: /api/calculate/
  • Create credit parameter: /api/calculate/create/

For detailed API documentation, refer to the API documentation (link here).

Contributing

Contributions are welcome!

License

This project is licensed under the MIT License.