amruthpillai/ifsc-api

:bank: Standalone API for IFSC codes

2

stars

86

commits

CSS

primary language

Jan 21, 2019

updated

README

ifsc-api

API server that serves Razorpay's IFSC API.

Current API Root is https://ifsc.razorpay.com/

Routes:

RouteMethodResponse
/:ifscGETJSON

A sample response is:

{
    "BANK": "KARNATAKA BANK LIMITED",
    "IFSC": "KARB0000001",
    "BRANCH": "RTGS-HO",
    "CONTACT": 2228222,
    "ADDRESS":
        "REGD. & HEAD OFFICE, P.B.NO.599, MAHAVEER CIRCLE, KANKANADY, MANGALORE - 575002",
    "CITY": "MANGALORE",
    "DISTRICT": "DAKSHINA KANNADA",
    "STATE": "KARNATAKA",
    "RTGS": true
}

URL: https://ifsc.razorpay.com/KARB0000001

You can see a permalink version of the request here

For an invalid IFSC code a 404 is returned.

Running the Docker Image

You can pull the image from razorpay/ifsc:latest

Run it with docker run --detach --publish 3000:3000 razorpay/ifsc:latest

This repo has the same tags as the parent IFSC repo.

Development

bundle install
# Make sure redis is running and available at localhost:6379
# This initializes the redis server
bundle exec ruby init.rb
bundle exec rackup

Your server should now be accessible at http://localhost:9292

Contributors

captn3m0

78 commits

patlola

5 commits

abhinavs

2 commits

icyflame

1 commits

amruthpillai/ifsc-api

:bank: Standalone API for IFSC codes

2

stars

86

commits

CSS

primary language

Jan 21, 2019

updated

README

ifsc-api

API server that serves Razorpay's IFSC API.

Current API Root is https://ifsc.razorpay.com/

Routes:

RouteMethodResponse
/:ifscGETJSON

A sample response is:

{
    "BANK": "KARNATAKA BANK LIMITED",
    "IFSC": "KARB0000001",
    "BRANCH": "RTGS-HO",
    "CONTACT": 2228222,
    "ADDRESS":
        "REGD. & HEAD OFFICE, P.B.NO.599, MAHAVEER CIRCLE, KANKANADY, MANGALORE - 575002",
    "CITY": "MANGALORE",
    "DISTRICT": "DAKSHINA KANNADA",
    "STATE": "KARNATAKA",
    "RTGS": true
}

URL: https://ifsc.razorpay.com/KARB0000001

You can see a permalink version of the request here

For an invalid IFSC code a 404 is returned.

Running the Docker Image

You can pull the image from razorpay/ifsc:latest

Run it with docker run --detach --publish 3000:3000 razorpay/ifsc:latest

This repo has the same tags as the parent IFSC repo.

Development

bundle install
# Make sure redis is running and available at localhost:6379
# This initializes the redis server
bundle exec ruby init.rb
bundle exec rackup

Your server should now be accessible at http://localhost:9292

Contributors

captn3m0

78 commits

patlola

5 commits

abhinavs

2 commits

icyflame

1 commits

Languages

CSS

40.6%

HTML

35.6%

Ruby

15.3%

Dockerfile

5.7%

Shell

1.5%

JavaScript

1.3%