This project is a simple E-commerce API built using FastAPI as part of the FastAPI Internship Day-1 assignment.
It demonstrates the basics of REST API development, endpoint creation, data filtering, and JSON responses.
The API simulates a small online store backend where users can view products, search items, filter by category, and check stock availability.
- View all products
- Get product by ID
- Filter products by category, price, and stock
- Show only in-stock products
- Search products by keyword (case-insensitive)
- Store summary endpoint
- Best deal (cheapest product) & Premium pick (most expensive product)
- Python
- FastAPI
- Uvicorn
| Method | Endpoint | Description |
|---|---|---|
| GET | / |
Home endpoint |
| GET | /products |
Get all products |
| GET | /products/{product_id} |
Get product by ID |
| GET | /products/filter |
Filter products |
| GET | /products/category/{category_name} |
Products by category |
| GET | /products/instock |
Only in-stock products |
| GET | /store/summary |
Store overview |
| GET | /products/search/{keyword} |
Search products |
| GET | /products/deals |
Cheapest & most expensive product |