Skip to content

AanandhiVB/bank-admin-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bank-admin-backend

Backend Coding Challenge

Create a REST service that can fetch bank details, using the data given in the API’s query parameters. The data obtained is available at: https://github.com/snarayanank2/indian_banks. The services are written using Django and the application is hosted on Heroku. PostgreSQL is used for the backend database and since the free-tier of Heroku has a limit of 10k rows, clever-cloud.com was used to host the database. Postman was used for testing the APIs and for generating the curl scripts.

The usecases of the application:

  1. Autocomplete API to return possible matches based on the branch name ordered by IFSC code (ascending order) with limit and offset.

    • Endpoint: /api/branches/autocomplete?q=<>
    • Example: /api/branches/autocomplete?q=RTGS&limit=3&offset=0
  2. Search API to return possible matches across all columns and all rows, ordered by IFSC code (ascending order) with limit and offset.

    • Endpoint: /api/branches?q=<>
    • Example: /api/branches?q=Bangalore&limit=4&offset=0

API Urls

Autocomplete API

https://aanandhivb-1.herokuapp.com/api/branches/autocomplete?q=ERNAKULAM&limit=3&offset=2

Search API

https://aanandhivb-1.herokuapp.com/api/branches?q=TRIVANDRUM&limit=5&offset=1

Curl Scripts

Autocomplete API

curl --location --request GET 'https://aanandhivb-1.herokuapp.com/api/branches/autocomplete?q=ERNAKULAM&limit=3&offset=2'

Search API

curl --location --request GET 'https://aanandhivb-1.herokuapp.com/api/branches?q=TRIVANDRUM&limit=5&offset=1'

Time Taken

Total time taken (including coding, testing, deploying) - 1 hour 30 minutes

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published