from fastapi import FastAPI app = FastAPI() @app.get("/") def greet_json(): return {"Hello": "this is pugaazhmukilan!"} @app.get("/plaintext") def greet_plaintext(): return {"result":"this is pugazh mukilan's api"}