This is a boilerplate API with FastAPI & Python to create todo items on a list
First Start a new Python virtual environment on your machine
$ cd python-fast-api
$ python3 -m venv .venv
$ source .venv/bin/activate
$ pip install fastapi
$ pip install uvicorn
$ cd python-fast-api
$ uvicorn main:app --reload
To view Swagger UI of the API navigate to:
localhost:8000/docs#
API address is:
http://localhost:8000/api/
GET /items
Parameter | Type | Required | Default |
---|---|---|---|
limit |
int |
true |
GET /items/{item_id}
POST /items
Parameter | Type | Required | Default |
---|---|---|---|
text |
string |
true |
|
is_done |
boolean |
false |
false |