Have some PAGE_AMOUNT = 20 static number that denotes how many pages are returned to the FE on each call to Get Posts
Two new endpoints:
GET /post?longitude=[long]&latitude=[lat]&page=[page]
If the FE requests the 4th page of posts, that means us returning to posts 61-80 (sorted by time), assuming that PAGE_AMOUNT = 20 and not some other number.
GET /post?longitude=[long]&latitude=[lat]&time_since=[time]
Return up to PAGE_AMOUNT of of most recent posts that have been posted since time_since
Have some
PAGE_AMOUNT = 20
static number that denotes how many pages are returned to the FE on each call to Get PostsTwo new endpoints:
GET /post?longitude=[long]&latitude=[lat]&page=[page]
If the FE requests the 4th page of posts, that means us returning to posts 61-80 (sorted by time), assuming thatPAGE_AMOUNT = 20
and not some other number.GET /post?longitude=[long]&latitude=[lat]&time_since=[time]
Return up toPAGE_AMOUNT
of of most recent posts that have been posted sincetime_since