/Fast-API

Examples for working with Fast-API, focusing on path parameters, query parameters, and different HTTP methods (GET, POST, PUT, DELETE).

Primary LanguagePythonApache License 2.0Apache-2.0

FastAPI Practice Project

This repository contains practice examples for working with FastAPI, focusing on path parameters, query parameters, and different HTTP methods (GET, POST, PUT, DELETE).

Project Structure

  • pathparameter.py: Examples of using path parameters in FastAPI.
  • queryparameter.py: Examples of using query parameters in FastAPI.
  • get.py: Examples of handling GET requests in FastAPI.
  • post.py: Examples of handling POST requests in FastAPI.
  • put.py: Examples of handling PUT requests in FastAPI.
  • delete.py: Examples of handling DELETE requests in FastAPI.

Getting Started

To get started with this project, follow the steps below.

Prerequisites

  • Python 3.7+
  • FastAPI
  • Uvicorn

You can install FastAPI and Uvicorn using pip:

pip install fastapi uvicorn