Closed kris-sum closed 9 years ago
It'd be great to use a standardised response header for the 'total' count, which i missed when first checking the API response.
X-Total-Count instead of Total
source: http://www.vinaysahni.com/best-practices-for-a-pragmatic-restful-api#pagination
Would also be nice to know the number of results in the current pagination set without having to count the elements in the json, either via a page size in the link tag or another header.
@pezholio @floppy what do you think?
Sounds sensible!
Promoted to https://github.com/OpenAddressesUK/theodolite/issues/145 .
It'd be great to use a standardised response header for the 'total' count, which i missed when first checking the API response.
source: http://www.vinaysahni.com/best-practices-for-a-pragmatic-restful-api#pagination
Would also be nice to know the number of results in the current pagination set without having to count the elements in the json, either via a page size in the link tag or another header.