Results of 1 - 1 of about 1 for unpkg (0.001 sec.)
- Custom Docs UI Static Assets (Self-Hosting) 9414
- 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
...lf. Custom CDN for JavaScript and CSS Let's say that you want to use a different CDN , for example you want to use https://unpkg.com/ . This could be useful if for example you live in a country that restricts some URLs. Disable the automatic docs The...e = app . title + " - Swagger UI" , oauth2_redirect_url = app . swagger_ui_oauth2_redirect_url , swagger_js_url = "https://unpkg.com/swagger-ui-dist@5/swagger-ui-bundle.js" , swagger_css_url = "https://unpkg.com/swagger-ui-dist@5/swagger-ui.css" , ) @...l (): return get_redoc_html ( openapi_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... - https://man.mtool.work/fastapi/0.115/how-to/custom-docs-ui-assets/
PREV
1
NEXT