Skip to content
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

chapter 6 : The class TacoResourceAssembler with no toResources(List<> tacos) method #109

Open
Maxwellwenjie opened this issue Sep 24, 2021 · 0 comments

Comments

@Maxwellwenjie
Copy link

@habuma
Class TacoResourceAssembler with no toResources(List<> tacos) method, only toResource(Taco tacos) method,
but in class RecentTacosController invoke new TacoResourceAssembler().toResources(tacos); Please check it.

  • In TacoResourceAssembler.java

@Override public TacoResource toResource(Taco taco) { return createResourceWithId(taco.getId(), taco); }

  • In RecentTacosController.java

List<TacoResource> tacoResources = new TacoResourceAssembler().toResources(tacos);

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

No branches or pull requests

1 participant