Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ok123456
on May 28, 2022
|
parent
|
context
|
favorite
| on:
Paginating Requests in APIs (2020)
if the page, limit and offset are parameters it is.
blenderdt
on May 28, 2022
[–]
If you query the first page with a limit of 10, then insert 10 items, do you get the same items with the same parameters?
isbvhodnvemrwvn
on May 28, 2022
|
parent
|
next
[–]
Using that logic you can only have restful APIs if your application is useless and data never changes (which is fine for me, I hate debates about restfulness)
ok123456
on May 28, 2022
|
parent
|
prev
[–]
If you really want to cache the results use e-tags based on a hash set on write, or just include that hash as part of your request as well.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: