MCPcopy Index your code
hub / github.com/dataease/SQLBot / custom_openapi

Function custom_openapi

backend/main.py:156–159  ·  view source on GitHub ↗
(request: Request)

Source from the content-addressed store, hash-verified

154# custom /openapi.json and /docs
155@app.get(f"{settings.CONTEXT_PATH}/openapi.json", include_in_schema=False)
156async def custom_openapi(request: Request):
157 lang = get_language_from_request(request)
158 schema = generate_openapi_for_lang(lang)
159 return JSONResponse(schema)
160
161
162@app.get(f"{settings.CONTEXT_PATH}/docs", include_in_schema=False)

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected