question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Create Spring HATEOAS integration for keyset pagination

See original GitHub issue

In Spring 2.2+ which is IMO the only version we should support here, the contracts changed completely. It seems it is intended to inject a PagedResourcesAssembler parameter to the controller method which can then be used to transform a Page to a PagedModel. That also adds the links since it knows the URI and the page numbers.

We will have to essentially duplicate this for the KeysetAwarePage and add additional parameters as needed.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
beikovcommented, May 15, 2020

I worked on the integration today and it looks like it works out. You can try it out here: https://github.com/Blazebit/blaze-persistence/pull/1092

Would love to hear some feedback!

0reactions
ask4gillescommented, May 15, 2020

I’ll do next week for sure, thanks again!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Level 3 REST services and paging with Spring HATEOAS
This Spring module will allow us to create a Web Service REST ... of the REST level 3 services (we are practically integrating...
Read more >
Question: headers link and keyset pagination #1080
I'm currently using blaze persistence together with spring mvc/data. I... ... Create Spring HATEOAS integration for keyset pagination #917.
Read more >
Spring HATEOAS - Reference Documentation
This project provides some APIs to ease creating REST representations that follow the HATEOAS principle when working with Spring and ...
Read more >
Keyset Pagination with Spring
In this article, I'm going to show you how you can use the Keyset Pagination technique with Spring or Spring Boot.
Read more >
Build a Spring Boot REST API with Pagination and Sorting
Learn how to build a Spring Boot REST API with paging and sorting capabilities using spring data jpa.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found