Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 731 Bytes

docs.md

File metadata and controls

31 lines (19 loc) · 731 Bytes

Getting started with FastAPI

FastAPI is a modern, fast (high-performance), web framework for building APIs with Python 3.6+ based on standard Python type hints.

Install FastAPI with all optional dependencies, including uvicorn that is the web server.

pip install "fastapi[all]"

Use Python types for validation and autocompletition

Python types tutorial

Basic tutorial

FastAPI tutorial

Run the code

uvicorn src.main:app --reload

Using --reload enable run the code automatically after each change.

Generate automatic docs - Swagger UI

http://127.0.0.1:8000/docs