OpenAPITools / OpenAPITools/openapi-generator

[REQ] Add support for Angular Resource API

Open
#21,263 9 comments 26 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement: Feature
Dominant language
Java
Stars
26.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

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.

Update:
this feature is available at ng-openapi using the plugin @ng-openapi/http-resource
Documentation: ng-openapi.dev

Additional context

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing Angular HttpClient generation and compare it with Angular's Resource API and HttpResource documentation linked in the issue. Define whether generated clients should support Resource, HttpResource, or both, and verify that the selected approach can be used as injectable services in Angular components.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular
Domain
api, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.