Hosting URL : https://exercise-test.herokuapp.com/
Database : Added the first 9780 rows from the branches
table to Heroku Postgres addon (free tier)
Requirement : jq package to parse the JWT token from the authentication API response.
Installation:
sudo apt install jq
Then the script.sh
file which contains the necessary CURL requests to demonstrate the various APIs can be executed.
Usage :
chmod +x script.sh
./script.sh
API calls made:
- Get an access token for the Fyle account (valid for 5 days).
Using the obtained token, - Get a bank branch with the IFSC code as input.
- Get the branches of a bank in a city.
- Get the branches of a bank in a city with offset and limit parameters.