Last active
February 13, 2022 19:58
-
-
Save Mgancita/5d7ff564b8aa8908b54286b296daa1a2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import Optional | |
from fastapi import FastAPI | |
app = FastAPI() | |
@app.get("/") | |
def hello(): | |
return {"Hello": "World"} | |
@app.get("/items/{item_id}") | |
def read_item(item_id: int): | |
return {"item_id": item_id, "q": q} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment