コンテンツにスキップ
per page, with , order by , clip by
Results of 1 - 1 of about 1 for teal (0.000 sec.)
Extending OpenAPI 9414
Extending OpenAPI Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . There are some cases where you might need to modify the generated OpenAPI schema. In this section ... h part that you need. For example, let's add ReDoc's OpenAPI extension to include a custom logo . Normal FastAPI First, write all your FastAPI application as normally: Python 3.8+ from fastapi import FastAPI from fastapi.openapi.utils import get_open ... es = app . routes , ) openapi_schema [ "info" ][ "x-logo" ] = { "url" : "https://fastapi.tiangolo.com/img/logo-margin/logo-teal.png" } app . openapi_schema = openapi_schema return app . openapi_schema app . openapi = custom_openapi Generate the OpenA ... es = app . routes , ) openapi_schema [ "info" ][ "x-logo" ] = { "url" : "https://fastapi.tiangolo.com/img/logo-margin/logo-teal.png" } app . openapi_schema = openapi_schema return app . openapi_schema app . openapi = custom_openapi Modify the OpenAPI ...
https://man.mtool.work/fastapi/0.115/how-to/extending-openapi/
PREV 1 NEXT