A Restful API powered by Falcon, JWT Auth and Postgresql DB
BASE URL : https://falcon-bank-api.herokuapp.com
sudo chmod +x test.sh
./test.sh
Request URL : /api/getToken
Request parameters :
parameter | Required | Description |
---|---|---|
Yes | User Email | |
password | Yes | User Password, |
raw | Optional | when set to "true" returns plain text, default format is JSON |
To test the API use email=modulus@helloworld.in and password=foobar (You change this in api.py)
Example :
echo $(curl -s -XPOST "https://falcon-bank-api.herokuapp.com/api/getToken?email={email}&password={password}&raw=true");
Request URL : /api/getBankDetails
Request parameters :
parameter | Required | Description |
---|---|---|
ifsc | Yes | IFSC Code |
limit | Optional | limit data |
offset | Optional | offset data |
token = JWT token from the post request
Example :
TOKEN={token} && echo $(curl -s -XGET -H "Authorization: Bearer $TOKEN" "https://falcon-bank-api.herokuapp.com/api/getBankDetails?ifsc={ifsc}&limit={limit}&offset={offset}");
Request URL : /api/getBranchDetails
Request parameters :
parameter | Required |
---|---|
bank_name | Yes |
city | Yes |
limit | Optional |
offset | Optional |
token = JWT token from the post request
Example :
TOKEN={token} && echo $(curl -s -XGET -H "Authorization: Bearer $TOKEN" "https://falcon-bank-api.herokuapp.com/api/getBranchDetails?bank_name={bank_name}&city={city}&limit={limit}&offset={offset}");
https://github.com/snarayanank2/indian_banks