Skip to content

Add a resources property to the Resource class #242

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jstano opened this issue Aug 26, 2014 · 1 comment
Closed

Add a resources property to the Resource class #242

jstano opened this issue Aug 26, 2014 · 1 comment
Labels

Comments

@jstano
Copy link

jstano commented Aug 26, 2014

It's not clear how to get the _embedded stuff in the Hal renderer working without having a new property in the Resource class or having a class derived from Resource with a resources property.

If you can provide an example of how to accomplish this without any changes to the project, that might be helpful.

Here's what I'm proposing:
new Resource(someDTO)
.withResources(someCollectionOfResources)
.withResources(otherCollectionOfResources)

If no resources are added to the Resource, then nothing will be output by the renderers.

I'll create a Pull Request so we look over the code.

@gregturn
Copy link
Contributor

gregturn commented Jun 4, 2020

Resolved via #864.

@gregturn gregturn closed this as completed Jun 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants