Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add doc for dynamic routes #898

Closed
xavier-dubreuil opened this issue Aug 18, 2016 · 1 comment
Closed

Add doc for dynamic routes #898

xavier-dubreuil opened this issue Aug 18, 2016 · 1 comment

Comments

@xavier-dubreuil
Copy link

Hello,

I develop a bundle that create dynamic routes for an API. How can I add documentation for those routes which don't have a specific controller action per route ?

@dbu
Copy link
Collaborator

dbu commented Dec 22, 2017

look at https://github.com/nelmio/NelmioApiDocBundle/blob/master/Routing/FilteredRouteCollectionBuilder.php - i think you would need to see where in the bundle this is used and extend it to add your dynamic routes there.

the CMF ChainRouter might also help you, then you can add a route provider for your dynamic routes and use them everywhere in your project.

@dbu dbu closed this as completed Dec 22, 2017
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

No branches or pull requests

2 participants