FastAPI and Python

Table of Contents
- [****Installation****](#installation)
- [Visual Code\*\*](#visual-code)
- [End Points:](#end-points)
- [To run the webserver:](#to-run-the-webserver)

Installation

  • python -m pip install fastapi
  • pip install uvicorn

Visual Code**

  • To work with multiple projects, (Multiple folders or multiple github repo)

End Points:

  • GET:- Get information
  • POST:- To create something new
  • PUT:- Used to update something in an object
  • DELETE:- Delete something

To run the webserver:

  • uvicorn myapi:app –reload where:
    • myapi:- the main file
    • app:- the fastapi object

Demo to Arun

Previous
Next