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

API prefix #54

Open
cdubz opened this issue Mar 3, 2020 · 3 comments
Open

API prefix #54

cdubz opened this issue Mar 3, 2020 · 3 comments

Comments

@cdubz
Copy link

cdubz commented Mar 3, 2020

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

@paknahad
Copy link
Owner

paknahad commented Mar 4, 2020

No, there is no way

But I appreciate any PR which fix this issue ;)

@mpaden3
Copy link
Contributor

mpaden3 commented Mar 4, 2020

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.

@cdubz
Copy link
Author

cdubz commented Mar 5, 2020

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

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

3 participants