# JAX-RS 2.0 pagination with Link header

DevFeed: [JAX-RS 2.0 pagination with Link header](<https://devfeed.tech/articles/jax-rs-2-0-pagination-with-link-header-26068.md>)

Original publisher: [Read original article](<https://blog.arkey.fr/2017/10/02/pagination_hateoas_link.en/>)

Author: brice.dutheil@gmail.com (Brice Dutheil)

Published: 2017-10-02T00:00:00Z

Content type: tutorial

Language: en

Sources: [The Coffee Workshop](<https://devfeed.tech/sources/the-coffee-workshop.md>)

Topics: [REST API](<https://devfeed.tech/topics/rest-api.md>), [HTTP](<https://devfeed.tech/topics/http.md>), [GitHub](<https://devfeed.tech/topics/github.md>)

Tags: [class](<https://devfeed.tech/tags/class.md>), [github](<https://devfeed.tech/tags/github.md>), [http](<https://devfeed.tech/tags/http.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [rest-api](<https://devfeed.tech/tags/rest-api.md>)

## AI overview

This tutorial explains how to implement pagination in a REST API using HTTP Link headers. It compares body-based pagination metadata with header-based metadata, discusses GitHub's approach, and outlines a JAX-RS 2.0 implementation.

## Source excerpt

Your REST API is looking good, everything is ready, but here comes a paginated resource. There could be various reasons to do it, be it search, listing, etc. In this matter several choices to implement that appear :