Last active
July 18, 2021 05:36
-
-
Save agusrichard/89c5b36b72a84abbae97001af0a3b28c to your computer and use it in GitHub Desktop.
Hello World API
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
| 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