Skip to content

Instantly share code, notes, and snippets.

@agusrichard
Last active July 18, 2021 05:36
Show Gist options
  • Select an option

  • Save agusrichard/89c5b36b72a84abbae97001af0a3b28c to your computer and use it in GitHub Desktop.

Select an option

Save agusrichard/89c5b36b72a84abbae97001af0a3b28c to your computer and use it in GitHub Desktop.
Hello World API
import uvicorn
from fastapi import FastAPI
app = FastAPI()
@app.get('/hello')
def hello():
return 'Hello World'
if __name__ == '__main__':
uvicorn.run(app)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment