/fastapi-todo-app

This a basic API made with FastAPI for a simple todo application.

Primary LanguagePython

FastAPI Todo Application

Python 3 FastAPI

This is a basic API for a todo application made with FastAPI. You can use any frontend framework with this. I am using SQLite in this project. Other databases can also be used easily. Refer to this for more information on how to use other databases with FastAPI.

API endpoints:

  • Get all the todo items present in the database, send a get request on the following endpoint:
http://127.0.0.1:8000/todos
  • To post a todo item in the database, send a post request on the following endpoint:
http://127.0.0.1:8000/todos
  • To update a specific todo item as completed/pending, send a put request on the following endpoint:
http://127.0.0.1:8000/todos/<todoItemID>

For further details, you can refer to http://127.0.0.1:8000/docs after starting the server. It will give you an auto generated and very detailed documentation.