🏦 Standalone API for IFSC codes
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data release/1.3.3 (#34) Feb 19, 2019
hooks [docker] Adds labels as per http://label-schema.org/rc1/ Jun 28, 2018
public Moves GA code to a separate file. Aug 22, 2018
views
.dockerignore
.editorconfig [lint] Style lint as per rubocop Jul 20, 2018
.gitignore Lighter bundle install for docker image Jan 15, 2018
.rubocop.yml [lint] Style lint as per rubocop Jul 20, 2018
.rubocop_todo.yml [lint] Style lint as per rubocop Jul 20, 2018
Dockerfile
Gemfile Adds /metrics endpoint Jul 20, 2018
Gemfile.build Adds a multi-stage build Jul 20, 2018
Gemfile.build.lock
Gemfile.lock [deps] Update Rack Nov 19, 2018
README.md
app.rb Allows GA in CSP. Aug 22, 2018
config.ru [metrics] Export limited metrics Jul 20, 2018
entrypoint.sh [docker] Listen on all interfaces Jul 20, 2018
init.rb Add missing files and log builds Sep 20, 2018
metrics.rb [metrics] Export limited metrics Jul 20, 2018

README.md

ifsc-api

API server that serves Razorpay's IFSC API.

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

Routes:

Route Method Response
/:ifsc GET JSON

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