Skip to content

Instantly share code, notes, and snippets.

@iamdejan
Last active May 20, 2022 15:40
Show Gist options
  • Save iamdejan/3ec456da9cae3811d3daefb863ff7c24 to your computer and use it in GitHub Desktop.
Save iamdejan/3ec456da9cae3811d3daefb863ff7c24 to your computer and use it in GitHub Desktop.
Simple API v0.1
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