Nelmio ApiDoc 3.0 - exclude section from SwaggerUI Nelmio ApiDoc 3.0 - exclude section from SwaggerUI symfony symfony

Nelmio ApiDoc 3.0 - exclude section from SwaggerUI


You can use the areas section in config.yml, setting the default area to whichever routes you want:

nelmio_api_doc:    documentation:        [...]    areas:        default:            path_patterns: [ ^/user, ^/customer ]

This config will set under api/doc only the routes you put in the array.