from fastapi import FastAPI app = FastAPI() @app.get("/") def greet(): return "Hello Yash" @app.get("/products") def get_all_prodects(): return "all products"