Skip to content

Conversation

@4lxndr
Copy link

@4lxndr 4lxndr commented Dec 16, 2025

Q A
Branch? 4.2
Tickets #7608
License MIT
Doc PR -

Fixes the issue where ReDoc cannot be used as the sole documentation UI. When enable_swagger_ui was false and enable_re_doc was true, accessing /api/docs.html resulted in a 404 "Swagger UI is disabled" error.

Changes:

  • Load swagger_ui services when either Swagger UI or ReDoc is enabled
  • Add reDocEnabled parameter to DocumentationAction
  • Use SwaggerUiProcessor for both Swagger UI and ReDoc rendering
  • Update service definitions to pass enable_re_doc parameter

This allows ReDoc to work independently when Swagger UI is disabled, while maintaining backward compatibility when both are enabled.

Fixes #7608

@4lxndr 4lxndr force-pushed the 7608-redoc-html-not-supported branch from af1a09d to 9cdec2c Compare December 17, 2025 20:34
@4lxndr 4lxndr force-pushed the 7608-redoc-html-not-supported branch from 9cdec2c to 8c513c0 Compare December 17, 2025 20:49
@4lxndr 4lxndr marked this pull request as ready for review December 17, 2025 20:58
@4lxndr
Copy link
Author

4lxndr commented Dec 17, 2025

CI was fine and went partially red after squash. Retry?

Feedback welcome.

@soyuka soyuka merged commit a2da509 into api-platform:4.2 Dec 18, 2025
128 of 130 checks passed
@soyuka
Copy link
Member

soyuka commented Dec 18, 2025

thanks!

@4lxndr 4lxndr deleted the 7608-redoc-html-not-supported branch December 18, 2025 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants