Skip to content

Support to render SlicedModel from Slice via a dedicated RepresentationModelAssembler #1307

Closed
@spring-projects-issues

Description

@spring-projects-issues

Oliver Drotbohm opened DATACMNS-845 and commented

From the original ticket in Spring HATEOAS:

Sometimes we cannot have information such as the total elements and total pages of a request, that's where we're using a Slice instead of a Page. But the PagedResourcesAssembler does not allow to convert a Slice to a Resource. It would be great to add a toResource(Slice<T> entity) method, or even add SlicedResourcesAssembler class.


Reference URL: spring-projects/spring-hateoas#443

2 votes, 4 watchers

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions