Skip to content

Python | Flask framework | REST API | SQL DB | Books Demo | GET | PUT | POST | PATCH | JWT Authentication

Notifications You must be signed in to change notification settings

kansujiya/Python_Rest_Api_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python_Rest_Api_demo

Python | Flask framework | REST API | SQL DB | Books Demo | GET | PUT | POST | PATCH | JWT Authentication

Need to install

  • pip3 install Flask
  • pip3 install jsonify
  • pip3 install request
  • pip3 install Response
  • pip3 install json
  • pip3 install functools
  • pip3 install jwt
  • pip3 install datetime

Run command to start the server

  • python3 app.py

Endpoint created

  • /login[POST]
  • /adduser[POST]
  • /books[GET]
  • /book/int:isbn[GET]
  • /addbook[POST]
  • /book/int:isbn/[PUT]
  • /updateBook/int:isbn/[PATCH]
  • /book/int:isbn/[DELETE]

Database : books

  • Table Name: users
  • Table name : books

About

Python | Flask framework | REST API | SQL DB | Books Demo | GET | PUT | POST | PATCH | JWT Authentication

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages