Simple API can display all the the bank details
Tools used
- DjangoRestFramework
- POSTMAN [for testing]
- psql database
- 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
Eg:
python3 basic.py
We can list out the bank name by passing the id Eg: [http://localhost:8000/api/2]
http://localhost:8000/api/<bank_id>
return all the fields of bank using IFSC number Eg: [http://localhost:8000/api/details/ABHY0065001/]
http://localhost:8000/api/details/<ifsc_code>/
Eg:
http://localhost:8000/api/list/
Eg:
http://localhost:8000/api/list_all/
Eg:
http://localhost:8000/api/bank_branch/RTGS-HO
The project completed by November 6