Skip to content

Conversation

@ivebeenlinuxed
Copy link

Provides httpResources for #359

@cvetanstoimenov
Copy link

cvetanstoimenov commented Jun 13, 2025

@ivebeenlinuxed I extended a bit with allowing to send httpResourceOption as a parameter.
PR: ivebeenlinuxed#1

@ivebeenlinuxed
Copy link
Author

Hello @cvetanstoimenov! Thanks for the commit! Your changes look great!

I've squashed it and reverted the changes to package.json and package-lock.json as they didn't really contribute to the fix (We can let the maintainers increase the version number). I've then applied that commit to pull request here, and also merged it into my master branch. Hopefully you can see the git history is nice and clean this way.

I've also checked out your version into one of my latest projects, and everything seems to work a dream!

Hope that makes it easy for the maintainers to pull in.

@bioc-druzgami
Copy link

Hello, are there any plans to merge this one? I hope it will become available soon 🤞

@dguisinger
Copy link

dguisinger commented Aug 16, 2025

I agree, I need this feature....
@luisfpg any chance you could look at this?

@rhnatiuk
Copy link

Hello! Any plans on merging it?

@Frozen-byte
Copy link

@ivebeenlinuxed are you still maintaining this PR?
If you lost interest, I would clone it and try to get it merged with @cvetanstoimenov additions.

@ivebeenlinuxed
Copy link
Author

Hello - I'm actively using my own fork ng-openapi-cli. It works well for me. Not been pushing to make an official fork, but this was critical for me, so I merged it and use it personally. Happy to chat to anyone about how to take this forward.

@ivebeenlinuxed
Copy link
Author

ivebeenlinuxed commented Nov 10, 2025

Note all: The original issue has been closed with "duplicate", but #359 also confirms the maintainers will not merge a patch for HttpResources

@Frozen-byte
Copy link

For everyone who also ends here to make his angular resource making happen with openapi-gen,
as long as you not want to specifically user "httpResource" the following should be working for a resource:

  private openApiService = inject(YourOpenApiService);
  protected yourResource = resource({
    loader: () => this.openApiService.getStuff()
  });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants