Skip to content

vishnudas-bluefox/bank_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[ Bank_API ]

Simple API can display all the the bank details

Tools used

  • DjangoRestFramework
  • POSTMAN [for testing]
  • psql database

Guide to build locally

  • clone the current repository
git clone https://github.com/vishnudas-bluefox/bank_api
  • get in to the directory
cd bank_api
  • Create and activate a virtualenvironment, for install the dependencies [Maybe you have to install venv in system] pip install virtualenv
python3 -m venv venv
source venv/bin/activate
  • Install the dependencies
pip install -r requirements.txt
  • To run the API server [Have to ensure the default port :8000 was free]
cd backend
python3 manage.py runserver

Users can test the api's by pyclient/files


Eg:

python3 basic.py

For display the bank_name using id number


We can list out the bank name by passing the id Eg: [http://localhost:8000/api/2]

http://localhost:8000/api/<bank_id>

postman_screenshot

Display all details of bank using IFSC number


return all the fields of bank using IFSC number Eg: [http://localhost:8000/api/details/ABHY0065001/]

http://localhost:8000/api/details/<ifsc_code>/

Postman Screenshot

List all the banks and their ID


Eg:

http://localhost:8000/api/list/

Postman_Screenshot

List all the details from branches table


Eg:

http://localhost:8000/api/list_all/

Postman Screenshot

List the complete details of banks using branch name


Eg:

http://localhost:8000/api/bank_branch/RTGS-HO

Postman_Screenshot

The project completed by November 6

For see the Dockerfile change the branch to deploy

About

Simple API can display all the the bank details

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages