Skip to content

Instantly share code, notes, and snippets.

Created June 15, 2022 08:27
What would you like to do?
This is a sample fast api code
from fastapi import FastAPI
from url_shortener import router
# Create the app
app = FastAPI()
def read_root():
return {"Hello": "World"}
def read_item(item_id: int):
return {"item_id": item_id}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment