This project implements a simple FastAPI-based RESTful CRUD API for managing items. It provides endpoints for creating, reading, updating, and deleting items.
-
Clone the repository:
git clone https://github.com/Azer5C74/fastapi-crud-items.git
-
Navigate to the Repo
cd fastapi-crud-items
-
Install dependencies
pip3 install fastapi uvicorn
- Run the FastAPI application:
python3 -m uvicorn main:app --reload3
- Create Item:
POST /items/: Create a new item.
- Read Items:
GET /items/: Retrieve all items.
- Read Item:
GET /items/{item_id}: Retrieve a specific item.
- Update Item:
PUT /items/{item_id}: Update a specific item.
- Delete Item:
DELETE /items/{item_id}: Delete a specific item.
pytest