/fastapi-example

A sample fastapi set of endpoints.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

FastAPI example

a simple coding exercise

Run instructions

Install Python 3.8 or later

Install virtualenv

In the command line, clone this repo.

Enter: virtualenv venv

Enter: pip install -r requirements.txt

Enter: uvicorn main:app --reload

To find docs go to http://127.0.0.1:8000/docs

To run tests...

Enter: pytest -1 tests.py