Code Monkey home page Code Monkey logo

django_psql_jwt's Introduction

django_psql_jwt

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

django_psql_jwt's People

Contributors

abhishek510 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.