Created
February 28, 2021 05:33
-
-
Save amalgjose/d038dd0e246e3d7d5a11a539099a0ab9 to your computer and use it in GitHub Desktop.
A sample GET API implementation using Python FastAPI. For more details, refer to https://amalgjose.com
This file contains hidden or 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 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