I want to build an UI documentation with swagger for my Restful API. this is the offitial documentation for that https://symfony.com/doc/master/bundles/NelmioApiDocBundle/index.html
But i got this error Unrecognized option "areas" under "nelmio_api_doc"
#routing.yml
app.swagger_ui:
path: vyndteam/api/doc/{areas}
methods: GET
defaults: { _controller: nelmio_api_doc.controller.swagger_ui }
#config.yml
nelmio_api_doc:
areas:
default:
path_patterns: [^/api]
host_patterns: [api\.]
business:
path_patterns: [^/business]
admin:
path_paterns: [^/admin]
Any suggestions?