This is a simple API for the Tour of Heroes tutorial using FastAPI.
- Clone the repository
- Install the dependencies using
pip install -r requirements.txt
- Run the server using
uvicorn main:app --reload --port 7000
The API has the following endpoints:
/heroes
- GET: Get all heroes/heroes/{hero_id}
- GET: Get a hero by ID/heroes
- POST: Create a new hero/heroes/{hero_id}
- PUT: Update a hero by ID