cyclosproject / ng-openapi-gen

An OpenAPI 3.0 codegen for Angular
MIT License
403 stars 134 forks source link

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

Open metal3d opened 1 week ago

metal3d commented 1 week ago

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 commented 2 days ago

Can you share the openapi definition?