Open thiagogabriel opened 7 years ago
I'll have to check with @elbrujohalcon how we usually do this, but I think it depends on the project. Sometimes we use page numbers, sometimes we use a cursor. As far as I know, the paginated resources are the only ones that should get enveloped items, as you wrote above @thiagogabriel . I'm gonna check if there's no item on the momentary index for this and, if there isn't, add it .
Pagination can be in the headers, right @volbap ?
In any case, we can totally add pagination as an exception to that rule, if needed.
Yeah, I would use the link headers as explained here. It seems to be a fair solution.
Also, let's try to avoid envelopes as well.
Since we should return a plain array with the items, where would we include the pagination metadata ?
The practice I know is do something like this: