Replies: 2 comments 7 replies
-
Hm. The section you are referring to is this, I guess: https://docs.postgrest.org/en/v12/references/api/pagination_count.html#limits-and-pagination This mentions explicitly that this the response format. You can expect the Further down, you can find the first mention of how to request that: https://docs.postgrest.org/en/v12/references/api/pagination_count.html#range-header The header you need to send is |
Beta Was this translation helpful? Give feedback.
-
@wolfgangwalther: TIL: It looks like the latest RFC / HTTP Semantics spec has some valid use cases for |
Beta Was this translation helpful? Give feedback.
-
Environment
Description of issue
According to the documentation, it is possible to manage pagination with header following parameters:
Unfortunetly I'm trying to paginate with these parameters but the response contains all items and not only the 15th first
I've triued using query parameters limit & offset and these query parameters are working well
curl -H 'Content-Range: 0-14/*' -H 'Range-Unit: items' http://localhost:3000/my_table_items
this returns a non paginated answer with Content-Range: 0-394/395
IS 200 OK but contains all items present in the my_table_items table
Beta Was this translation helpful? Give feedback.
All reactions