Code Monkey home page Code Monkey logo

bank_api's Introduction

Bank APP API

Note: the deployed version might take upto 50 seconds for the first time as the free version of Render will auto shut off after certain time of inactivity.

Installation

  1. Clone the repository
  2. Create a .env file in the root directory with content from .env.example
  3. Install the dependencies with npm install
  4. use npm start to start the server
  5. the server should run on port 8080

Endpoints

Returns all the banks

Request

sample response

{
  "data": [
    {
      "name": "STATE BANK OF INDIA",
      "id": "1"
    },
    {
      "name": "PUNJAB NATIONAL BANK",
      "id": "2"
    }
  ]
}

Returns all the branches of the bank name

Sample Response:

{
  "data": [
    {
      "ifsc": "PUNB0309100",
      "bank_id": "2",
      "branch": "NEW DELHI JANPATH N-86 (MERGED",
      "address": "DISTT. NEW DELHI (DELHI)",
      "city": "DELHI",
      "district": "DELHI",
      "state": "DELHI",
      "bank_name": "PUNJAB NATIONAL BANK"
    },
    {
      "ifsc": "PUNB0309200",
      "bank_id": "2",
      "branch": "L BLOCK CON CIRCUS ",
      "address": "4, L-BLOCK, CONNAUGHT PLACE",
      "city": "NEW DELHI",
      "district": "NEW DELHI",
      "state": "DELHI",
      "bank_name": "PUNJAB NATIONAL BANK"
    }
  ]
}

Returns the bank branch details by the ifsc code.

Sample Response:

{
  "data": [
    {
      "ifsc": "SMBC0000001",
      "bank_id": "170",
      "branch": "RTGS-HO",
      "address": "13TH FLOOR, HINDUSTAN TIMES HOUSE, 18-20, KG MARG,NEW DELHI - 110001",
      "city": "NEW DELHI",
      "district": "NEW DELHI",
      "state": "DELHI"
    }
  ]
}

Return the bank branch details by the bankid and the ifsc code.

Sample Response:

{
  "data": [
    {
      "ifsc": "SMBC0000001",
      "bank_id": "170",
      "branch": "RTGS-HO",
      "address": "13TH FLOOR, HINDUSTAN TIMES HOUSE, 18-20, KG MARG,NEW DELHI - 110001",
      "city": "NEW DELHI",
      "district": "NEW DELHI",
      "state": "DELHI",
      "bank_name": "SUMITOMO MITSUI BANKING CORPORATION"
    }
  ]
}

Hosted on Render

Bank API

This API provides information about banks and their branches.

Endpoints

Endpoint Description
GET /api/v1/banks Get a list of all banks
GET /api/v1/bank-branches?bankName={bankName} Get all branches for a specific bank
GET /api/v1/branch-details/{ifsc} Get details for a specific branch by IFSC code
GET /api/v1/branch-detailsbybankId/{ifsc}?bankId={bankId} Get details for a specific branch by IFSC and bank ID

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.