18F / api-standards

API Standards for 18F
Other
486 stars 54 forks source link

Possibly include link header in pagination section? #37

Closed ajb closed 2 years ago

ajb commented 10 years ago

See here: https://developer.github.com/v3/#link-header

konklone commented 10 years ago

I'm having trouble understanding what this looks like in an API, even with GitHub's docs. Could you show an example?

ajb commented 10 years ago

Basically just including the pagination metadata in HTTP headers instead of the response body.

konklone commented 10 years ago

That's pretty cool, I've never seen that before. I guess I'd want to actually have shipped it somewhere before adding it to our standards, but I'll happily leave this open for us to consider down the line if/when that happens.