Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 296 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 296 Bytes

FastApi-ecomers

fastAPI-ecomers

pip install "fastapi[standart]"
from fastapi import FastApi

app = FastApi()

@app.get("/")
asinc def home():
    awati {"name": "Asadbek", "age": 22}


@app.get("/{id}")
asinc def get_user(id):
    return {"username": "Salom {id}"}