Typical to-do list api written in fastapi
This api uses postgresql, but you can change this in the code. This API implements functions such as:
- create_task
- get_tasks
- get_task_by_id
- delete_task_by_id
- get_tasks_by_categories
- update_task_status
To see what each function does, simply run the api on localhost and read the swagger documentation.
- Clone repo
- Install the dependencies with the command
pip install -r requirements.txt
- Go to the directory with api.py with the command
cd fastapi
- Run
fastapi dev api.py
.