Problem
When we define in routing.yml:
my_controllers:
resource: "@MyBundle/Controller/"
type: annotation
prefix: /
and
my_api:
resource: 'MyBundle\Controller\ApiController'
type: rest
prefix: /api
name_prefix: my_api_
options:
expose: true
We get duplicate routes in NelmioApiDoc:

Question
How should we do this, so routes from ApiControllerwill not be duplicated?
- exclude
ApiControllerwildcard resources from import? - import all other controllers separately?
- another solution?
source
share