Database used Postgresql Api to search in that data for specific authenticated users All API calls authenticated by JWT Tokens
Requirements: Django==2.2.4 django-jwt-auth==0.0.2 djangorestframework==3.10.2 djangorestframework-simplejwt==4.3.0 psycopg2==2.8.3 PyJWT==1.7.1 pytz==2019.2
for localhost: get access and refresh token: curl -X POST -H "Content-Type: application/json" -d '{"username": "username", "password": "password"}' http://localhost:8000/api/token/
get new access token after expiration: curl -X POST -H "Content-Type: application/json" -d '{"refresh":"",}' http://localhost:8000/api/token/refresh/
search by ifsc: curl -H "Authorization: Bearer "" " http://localhost:8000/ifscresult?ifsc=ABHY0065121
search by name and city: curl -H "Authorization: Bearer "" " http://127.0.0.1:8000/namecity?name=ABHYUDAYA COOPERATIVE BANK LIMITED&city=MUMBAI&limit=9&offset=1
deployed on heroku: get access and refresh token: curl -X POST -H "Content-Type: application/json" -d '{"username": "username", "password": "password"}' http://appassignment.herokuapp.com/api/token/
get new access token after expiration: curl -X POST -H "Content-Type: application/json" -d '{"refresh":"",}' http://appassignment.herokuapp.com/api/token/refresh/
search by ifsc: curl -H "Authorization: Bearer "" " http://appassignment.herokuapp.com/ifscresult?ifsc=ABHY0065121
search by name and city: curl -H "Authorization: Bearer "" " http://appassignment.herokuapp.com/namecity?name=ABHYUDAYA COOPERATIVE BANK LIMITED&city=MUMBAI&limit=9&offset=1