Skip to content

Instantly share code, notes, and snippets.

@novasush
Created March 7, 2021 16:53
Show Gist options
  • Save novasush/0b7c50b7a4813f48543726d0f7032e6a to your computer and use it in GitHub Desktop.
Save novasush/0b7c50b7a4813f48543726d0f7032e6a to your computer and use it in GitHub Desktop.
A Hello World app of FastAPI
from fastapi import FastAPI
app = FastAPI()
@app.get("/")
async def index():
"""
A simple Hello World GET request
"""
return {"message": "Hello, World!"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment