FastAPI
Inventory
- Lets build a simple inventory service for a supermarket which sells packed products
- In Inventory Application
- Resources
- Products
- Users
- Actions:
- Products
- Get all products
- filtering
- Get individual product
- Add New Product
- Update Product (stock count)
- Delete Product
- Get all products
- Products
- Resources
-
Structure of Product:
- id
- name
- sku
- price
- stock
number of items - description
- Refer Here for the changes done
FastAPI Concepts
- FastAPI Class forms the basic class which will create a fastapi application
- Responses and Requests. Fast API supports Request and Response Models
- Adding validations to the model
- Adding http status codes
