Skip to content

Latest commit

 

History

History
33 lines (15 loc) · 1.94 KB

README.md

File metadata and controls

33 lines (15 loc) · 1.94 KB

DjangoRESTframework-JWT

REST service that can fetch bank details, using the data given in the API’s query parameters.

This is JWT authenticated. You will need a valid access tocken inorder to access contents from this API.

API formats:

1. GET API to fetch a bank details, given branch IFSC code : curl -X GET -H 'Accept: application/json' -H "Authorization: Bearer {access token here}" https://fyleapi.herokuapp.com/?ifsc={ifsc code here}
  1. GET API to fetch all details of branches, given bank name and a city : curl -X GET -H 'Accept: application/json' -H "Authorization: Bearer {access token here}" https://fyleapi.herokuapp.com/?bank={bank name here}/city={city name here}

Example API calls:

1. IFSC: curl -X GET -H 'Accept: application/json' -H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNTYzOTY0OTMzLCJqdGkiOiJhNDJlODU3ZGIzNTI0NmIxOTc1ZjU1OGQ3ZWU0ZjhiZSIsInVzZXJfaWQiOjF9.arJWRI1IS35VYMxABOP20ESUPwnPdpWCM67woSEJ14U" https://fyleapi.herokuapp.com/?ifsc=ABHY0065003
  1. BANK/CITY: curl -X GET -H 'Accept: application/json' -H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNTYzOTY0OTMzLCJqdGkiOiJhNDJlODU3ZGIzNTI0NmIxOTc1ZjU1OGQ3ZWU0ZjhiZSIsInVzZXJfaWQiOjF9.arJWRI1IS35VYMxABOP20ESUPwnPdpWCM67woSEJ14U" -G "https://fyleapi.herokuapp.com/?" --data-urlencode "bank=ABHYUDAYA COOPERATIVE BANK LIMITED/city=MUMBAI"



Including Offset and Limits:

Example Request: [ limit = 10 | offset = 3]

curl -X GET -H 'Accept: application/json' -H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNTYzOTY0OTMzLCJqdGkiOiJhNDJlODU3ZGIzNTI0NmIxOTc1ZjU1OGQ3ZWU0ZjhiZSIsInVzZXJfaWQiOjF9.arJWRI1IS35VYMxABOP20ESUPwnPdpWCM67woSEJ14U" -G "https://fyleapi.herokuapp.com/?" --data-urlencode "bank=ABHYUDAYA COOPERATIVE BANK LIMITED/city=MUMBAI/limit=10/offset=3"