Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A sample GET API implementation using Python FastAPI. For more details, refer to https://amalgjose.com
from fastapi import FastAPI
app = FastAPI()
@app.get("/")
def my_first_get_api():
"""
Sample GET method implementation using FastAPI
:return:
"""
return {"Hello": "World"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment