GithubHelp home page GithubHelp logo

credit-approval-system's Introduction

Credit Approval System

## API Endpoints

### Register User
- **URL:** `/register/`
- **Method:** POST
- **Description:** Register a new user.
- **Request Body:**
  ```json
  {
    "first_name": "John",
    "last_name": "Doe",
    "age": 30,
    "phone_number": "1234567890",
    "monthly_income": 5000
  }
  • Response:
    {
      "customer_id": 2131312,
      "name": "John Doe",
      "age": 30,
      "phone_number": "1234567890",
      "monthly_income": 5000,
      "approved_limit": 900000,
    }

Check Eligibility

  • URL: /check-eligibility/
  • Method: POST
  • Description: Checks if a customer is eligible for a loan.
  • Request Body:
    {
      "customer_id": 1,
      "loan_amount": 10000,
      "interest_rate": 8,
      "tenure": 12
    }
  • Response:
    {
      "customer_id": 1,
      "eligible": true,
      "interest_rate": 8,
      "corrected_interest_rate": 8,
      "tenure": 12,
      "monthly_installment": 950
    }

Create Loan

  • URL: /create-loan/
  • Method: POST
  • Description: Create a new loan for a customer.
  • Request Body:
    {
      "customer_id": 1,
      "loan_amount": 10000,
      "interest_rate": 8,
      "tenure": 12
    }
  • Response:
      {
      "loan_id": 10007,
      "customer_id": 299,
      "loan_approved": true,
      "message": "Loan approved by authority",
      "monthly_installment": 833.
      }

View Loan

  • URL: /view-loan/<int:loan_id>/
  • Method: GET
  • Description: Check the information of a specific loan.
  • Response:
    {
      "loan_id": 10007,
      "customer": {
          "first_name": "Argelia",
          "last_name": "Saavedra",
          "phone_number": "9614182220",
          "age": 30
      },
      "loan_amount": 5000.0,
      "interest_rate": 2.0,
      "tenure": 50,
      "monthly_installment": 833
      }

View Loans

  • URL: /view-loans/<int:customer_id>/
  • Method: GET
  • Description: See the loans of a specific customer.
  • Response:
    {
      "loan_id": 10007,
      "customer": {
          "first_name": "Argelia",
          "last_name": "Saavedra",
          "phone_number": "9614182220",
          "age": 30
      },
      "loan_amount": 5000.0,
      "interest_rate": 2.0,
      "tenure": 50,
      "monthly_installment": 833.70
      }

Author: Hossain Chisty(Backend Developer)
Contact: [email protected]
Github: https://github.com/hossainchisty

credit-approval-system's People

Contributors

hossainchisty avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.