Books Project for FastAPI | Request and Response cycle | HTTP Request Methods

 Books Project for FastAPI application

Agenda:

  • Creating and enhancing books to learn the basics of FastAPI
sample list of books
BOOKS={
{'title': 'Title one', 'author': 'Author one', 'category': 'science'},
{'title': 'Title two', 'author': 'Author two', 'category': 'science'},
{'title': 'Title three', 'author': 'Author three', 'category': 'history'},
{'title': 'Title four', 'author': 'Author four', 'category': 'math'},
{'title': 'Title five', 'author': 'Author five', 'category': 'math'}
}

We have to use CRUD operations to store these books data into database for future usage.

Request and Response:


HTTP Request Methods:




  

Comments

Popular posts from this blog

Post Request with Pydantic usage (input validator)

Code Scalability and Routing

CRUD Assignment