jsonapi-bundle icon indicating copy to clipboard operation
jsonapi-bundle copied to clipboard

API prefix

Open cdubz opened this issue 4 years ago • 3 comments

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).

cdubz avatar Mar 03 '20 12:03 cdubz

No, there is no way

But I appreciate any PR which fix this issue ;)

paknahad avatar Mar 04 '20 08:03 paknahad

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.

mpaden3 avatar Mar 04 '20 14:03 mpaden3

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).

cdubz avatar Mar 05 '20 03:03 cdubz