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

Maybe an option to stop having "v1" in names #333

Open
metal3d opened this issue Nov 12, 2024 · 1 comment
Open

Maybe an option to stop having "v1" in names #333

metal3d opened this issue Nov 12, 2024 · 1 comment
Labels
needs info More information is needed

Comments

@metal3d
Copy link

metal3d commented Nov 12, 2024

Hello,

I successfully use the generator, and it saves a lot of time: thanks

Just one note, our API endpoints are like /api/v1/xxx and the methods generated are v1Xxxx.

For example, /api/v1/projects results on this.apiservice.v1ProjectList().

And it's a bit redundant, because we need to inject v1Serice and call v1ProjectList.

I don't understand why there are both v1 in service name and method, and I don't find how to strip it.

@luisfpg
Copy link
Contributor

luisfpg commented Nov 19, 2024

Can you share the openapi definition?

@luisfpg luisfpg added the needs info More information is needed label Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs info More information is needed
Projects
None yet
Development

No branches or pull requests

2 participants