from fastapi import FastAPI app = FastAPI() @app.get("/") def greet_json(): return {"Hello": "World!"} @app.get("/heath") def health_str(): return "OK"