Skip to content

mdbneto/simple-fastapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Learning fastapi

This app is the result of following the fastapi tutorial.

Installation

Set up a installation usin python venv

python -m venv /path/to/new/virtual/environment
source <venv>/bin/activate
pip install -r requirements.txt

Run it

To run it initialize the uvicorn server using the flag --reload to reload te server every time that the codes change

uvicorn app.main:app --reload

Tutorial - User Guide

  • First Steps
  • Path Parameters
  • Query Parameters
  • Request Body
  • Query Parameters and String Validations
  • Path Parameters and Numeric Validations
  • Body - Multiple Parameters
  • Body - Fields
  • Body - Nested Models
  • Declare Request Example Data
  • Extra Data Types
  • Cookie Parameters
  • Header Parameters
  • Response Model - Return Type
  • Extra Models
  • Response Status Code
  • Form Data
  • Request Files
  • Request Forms and Files
  • Handling Errors
  • Path Operation Configuration
  • JSON Compatible Encoder
  • Body - Updates

About

use to learn fastapi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages