ng-openapi-gen icon indicating copy to clipboard operation
ng-openapi-gen copied to clipboard

Question: How to reduce the number of generated variants?

Open ChristianSchwarz opened this issue 2 weeks ago • 2 comments

The generator, produces 4 methods like:

getById$Plain$Response():Observable<StrictHttpResponse<JsonData>>
getById$Plain():Observable<JsonData>
getById$Json$Response():Observable<StrictHttpResponse<JsonData>>
getById$Json():Observable<JsonData>

but we only need one, that should have a signature like:

getById():Observable<JsonData>

Can this be configured somehow?

see: https://stackoverflow.com/questions/78113106/ng-openapi-gen-how-to-generate-only-one-method-per-endpoint

ChristianSchwarz avatar Feb 13 '25 11:02 ChristianSchwarz