You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: add guidance for enabling UI route with Flex (#2695)
## Summary
- The installation docs only described route registration inside a "not
using Flex" note block
- Flex users had no indication that the UI route in
`config/routes/nelmio_api_doc.yaml` needs to be uncommented to browse
the documentation
- Restructure the section so all users see the route configuration, with
a separate note for non-Flex kernel registration
Fixes#2592
Copy file name to clipboardExpand all lines: docs/index.rst
+38-46Lines changed: 38 additions & 46 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,32 @@ Open a command console, enter your project directory and execute the following c
37
37
38
38
By default, only routes under ``/api`` are documented. Update the regexp at ``nelmio_api_doc.areas.path_patterns`` in ``config/packages/nelmio_api_doc.yaml`` to change this policy.
39
39
40
+
To browse your documentation with a UI, you need to enable a UI route. If you're using **Flex**, the installer created a ``config/routes/nelmio_api_doc.yaml`` file with a JSON route enabled and the UI route commented out. Uncomment the UI of your choice (Swagger UI requires the ``twig`` and ``asset`` packages):
0 commit comments