Skip to content

I'm using the HTTP Link header for pagination in my API. #2448

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

Closed
Budda0ne opened this issue Jan 23, 2021 · 1 comment
Closed

I'm using the HTTP Link header for pagination in my API. #2448

Budda0ne opened this issue Jan 23, 2021 · 1 comment

Comments

@Budda0ne
Copy link

I'm using the HTTP Link header for pagination in my API.

e.g. GET /items?limit=10&filter=active

returns a Link-header with Link: <https://example.com/features?limit=10&filter=active&cursor=a34Dsdf>; rel="next"

What I would like is for the auto-generation tools to be able to create a method e.g. "getNextPortion" that uses the parameters from the Link header to get the next n items.

Is this possible, or must I use "primitive" headers containing single integers and strings?

Originally posted by @meastp in #2402

@MikeRalphson
Copy link
Member

Dupe of #2402

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

2 participants