Skip to content

next/previous link equivalent in postgrest #3772

Answered by rv2931
rv2931 asked this question in Q&A
Discussion options

You must be logged in to vote

@wolfgangwalther what about this web linking RFC ?
https://datatracker.ietf.org/doc/html/rfc8288

Itseems to allow Link headers for next/previous/start/end links

Link: <http://......>, rel="next"
Link: <http://......>, tel="previous"

I don't know it include specifying headers attributes to the link like
Link: <http://....>, rel=next, range=items:101-200;

As the RFC seems to define a closed list of link-params but in the other hand it shouldn't be a problem to add custom parameter like "range" to the list
Or this could make the need to manage query parameters limit/offset to maintain full compliance with RFC and process these query params as range header param as header param can't be defi…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@rv2931
Comment options

Comment options

You must be logged in to vote
1 reply
@wolfgangwalther
Comment options

Answer selected by wolfgangwalther
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants