コンテンツにスキップ
per page, with , order by , clip by
Results of 1 - 2 of about 2 for standalone (0.001 sec.)
Custom Docs UI Static Assets (Self-Hosting) 11228
Custom Docs UI Static Assets (Self-Hosting) Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . The API docs use Swagger UI and ReDoc , and each of those need some Jav ... pi_url = app . openapi_url , title = app . title + " - ReDoc" , redoc_js_url = "https://unpkg.com/redoc@next/bundles/redoc.standalone.js" , ) @app . get ( "/users/ {username} " ) async def read_user ( username : str ): return { "message" : f "Hello { usern ... pi_url = app . openapi_url , title = app . title + " - ReDoc" , redoc_js_url = "https://unpkg.com/redoc@next/bundles/redoc.standalone.js" , ) @app . get ( "/users/ {username} " ) async def read_user ( username : str ): return { "message" : f "Hello { usern ... pi_url = app . openapi_url , title = app . title + " - ReDoc" , redoc_js_url = "https://unpkg.com/redoc@next/bundles/redoc.standalone.js" , ) @app . get ( "/users/ {username} " ) async def read_user ( username : str ): return { "message" : f "Hello { usern ...
https://man.mtool.work/fastapi/0.115/how-to/custom-docs-ui-assets/
Configure Swagger UI 7485
Configure Swagger UI Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . You can configure some extra Swagger UI parameters . To configure them, pass the swagger_ui_pa ... ation.origin + ' { oauth2_redirect_url } '," html += """ presets: [ SwaggerUIBundle.presets.apis, SwaggerUIBundle.SwaggerUIStandalonePreset ], })""" if init_oauth : html += f """ ui.initOAuth( { json . dumps ( jsonable_encoder ( init_oauth )) } ) """ html ... d the ReDoc JavaScript. It is normally set to a CDN URL. """ ), ] = "https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js" , redoc_favicon_url : Annotated [ str , Doc ( """ The URL of the favicon to use. It is normally shown in the browser t ... includes these JavaScript-only presets settings: presets : [ SwaggerUIBundle . presets . apis , SwaggerUIBundle . SwaggerUIStandalonePreset ] These are JavaScript objects, not strings, so you can't pass them from Python code directly. If you need to use Ja ...
https://man.mtool.work/fastapi/0.115/how-to/configure-swagger-ui/
PREV 1 NEXT