jsonapi-bundle
jsonapi-bundle copied to clipboard
API prefix
Is there any way currently to set a prefix for the generated routes when running php bin/console make:api
? I was not able to find any and the enforced routes seem to be deeply ingrained in the generation process (e.g. just changing the annotation on the controller does not updated the route information provided from the API responses).
No, there is no way
But I appreciate any PR which fix this issue ;)
I'm including configuration options in my PR #53 . One of the options is to add different namespace for Controller classes. I can include this option as well.
Sounds good. I’m also happy to do a PR specifically for prefixing after #55 is merged. There should probably also be a config for prefixing the route names as well (FOSRest offers it that way, anyway).