79191358

Date: 2024-11-15 07:03:22
Score: 1.5
Natty:
Report link

I'm a little late to the party but here's how you can do it:

from fastapi import FastAPI

app = FastAPI()

@app.get('/', openapi_extra = { "summary": "ABC My Wonderful Function" })
def abc_my_wonderful_function():
  return {"Wonderful": "Function"}

References:

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: MetaInformation