Skip to content

alluster/python-fast-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

python-fast-api: FastAPI with Python

This is a boilerplate API with FastAPI & Python to create todo items on a list

Authors

Installation

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

Running locally

    $ cd python-fast-api
    $ uvicorn main:app --reload

To view Swagger UI of the API navigate to:

  localhost:8000/docs#

API Reference

API address is:

  http://localhost:8000/api/

Get all items

  GET /items
Parameter Type Required  Default
limit int true

Get item

  GET /items/{item_id}

Add item

  POST /items
Parameter Type Required  Default
text string true
is_done boolean false false

About

FastAPI with Python to create todos

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages