A simple RESTful API built with FastAPI for managing a list of people (id, name,
age).
This project is intended for learning and experimentation purposes.
- List all people
- Add new person
- Get person by ID
- Update person data
- Delete person
- Python 3.8+
fastapiuvicornpydantic
Install requirements with:
bash
pip install -r requirements.txt
Start the server locally with:
bash
uvicorn main:app --reload
Replace
mainwith your Python filename if different.
The API will be available at http://localhost:8000
You can test and explore the API via the interactive docs:
GET /allList all peopleGET /{id}Get person by IDPOST /Add new person (JSON body)PUT /{id}Update person dataDELETE /{id}Delete person
MIT License.
For learning and demo purposes.