A minimal FastAPI application with a hello endpoint and basic in-memory CRUD for items.
- Python 3.9+
pip install -r requirements.txtuvicorn main:app --reloadThe app runs at http://127.0.0.1:8000. Interactive API docs are at http://127.0.0.1:8000/docs.
| Method | Path | Description |
|---|---|---|
| GET | / |
Hello message |
| GET | /hello/{name} |
Greet a name |
| GET | /items |
List all items |
| GET | /items/{item_id} |
Get one item |
| POST | /items |
Create an item |
| PUT | /items/{item_id} |
Update an item |
| DELETE | /items/{item_id} |
Delete an item |
curl -X POST http://127.0.0.1:8000/items \
-H "Content-Type: application/json" \
-d '{"name": "Notebook", "price": 4.99, "in_stock": true}'