1 Comment

There's an API design practice called HATEOAS (also known as level 3 in Richardson Maturity Model) where hypermedia links are embedded in the response payload that point to other resources. It is quite a common practice to embed pagination links in this way as it makes the API more navigable.

Here's a Spring Boot example of this approach: https://tech.asimio.net/2020/04/16/Adding-HAL-pagination-links-to-RESTful-applications-using-Spring-HATEOAS.html

Expand full comment