News for hackers. Stuff that matters.
Re:How to Design Better APIs by sandreas on Saturday March 12, 2022 @12:38AM (#30649231)
While I agree with the most aspects of this very good blog post, there is a minor detail that I would like to note:

While pagination is important, there is another possibility of pure size - it is using cursors, like mentioned in the JSONAPI specification[1] (containing many of the hints in the topics' post) and in this blog post[1]

[1] https://jsonapi.org/format/#fetching-pagination

[2] https://dev.to/jackmarchant/offset-and-cursor-pagination-exp...

Re:How to Design Better APIs by rbluethl on Sunday March 13, 2022 @07:51AM (#30660432)
Author here. Thanks for the nice words - I appreciate it. I've read that a couple of times in the comments already. Definitely something worth considering, Stripe does this as well. Thanks for your comment.