Last active
May 20, 2022 15:40
-
-
Save iamdejan/3ec456da9cae3811d3daefb863ff7c24 to your computer and use it in GitHub Desktop.
Simple API v0.1
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 time | |
from fastapi import FastAPI | |
app: FastAPI = FastAPI() | |
@app.get("/version") | |
def get_version() -> str: | |
time.sleep(15) | |
return "v0.1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment