OpenAddressesUK / forum

This is Open Addresses UK's public forum
MIT License
2 stars 0 forks source link

API response to use X-Total-Count not Total #55

Closed kris-sum closed 9 years ago

kris-sum commented 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.

giacecco commented 9 years ago

@pezholio @floppy what do you think?

Floppy commented 9 years ago

Sounds sensible!

giacecco commented 9 years ago

Promoted to https://github.com/OpenAddressesUK/theodolite/issues/145 .