An example template of a Python API made using FastAPI.
- Install the required dependencies using the following command:
pip install -r requirements.txt
- Run the API using the following command:
- Replace the value of
--port
with the port you want the API to run on.
uvicorn main:app --port 3000
router.py
contains all of the endpoints of the API.