openapi-generator
openapi-generator copied to clipboard
[REQ] Add support for Angular Resource API
Is your feature request related to a problem? Please describe.
I would love to implement the newest features of Angular in my API client using the Resource API or even better the new HttpResource introduced in Angular v19.2, but currently there is no support of this feature.
Describe the solution you'd like
I want to be able to generate my client either using the standard HttpClient or using the new Resource. Or perhaps even generate both. I think it would be nice to then have them as services and inject them into the angular components (as it is right now for the HttpClient)
Describe alternatives you've considered
There isn't really any well established library which supports this feature yet. So currently I am just manually creating my client by myself.
Additional context
I like this feature suggestion. Especially with the experimental httpResource there are several possibilities. However, the question is how the generated api should look exactly. When this has been worked out in detail, I would like to actively participate in the implementation. It should be configurable in any case.
is this being discussed somewhere? the only thing i found so far is this issue
is this being discussed somewhere? the only thing i found so far is this issue
@fchtngr unfortunately I haven't seen anything regarding this. Neither in this client generator, nor in other client generators. It would be really nice to implement this asap. Since there is a lot of use cases for this already.
is there any way to prioritize this feature or request to prioritize it?
I would also be interested to participate in the implementation.
This took too long so I did what any other sane dev would do.
I created my own library and now it supports httpResource as well. The reason why I went with my way was to also improve the generated code quality and add a few other neat features. Otherwise I would have just contributed to this library.
https://ng-openapi.dev/guide/http-resource.html
Well that still doesn't resolve it for anyone wanting to use openapi-generator....
Well that still doesn't resolve it for anyone wanting to use openapi-generator....
@dguisinger true that. Unfortunately my Java skills isn't that good to implement it here. Additionally this would mean a bigger change have to be implemented, since the httpResources aren't compatible with Angular versions prior to v19.2. That's why I just migrated completely to ng-openapi. It took me around 5 minutes to migrate it.
However I hope they still implement this feature in this library as well, since it is the most known one and I don't want others to miss on the newest Angular features, hence I am going to keep this issue open 👍