vulcan-sql
vulcan-sql copied to clipboard
Provide the information about pagination in API responses
What’s the problem you're trying to solve
We've implemented offset-based pagination #104, but our API response didn't give extra information about it, e.g. total count.
Describe the solution you’d like
We can wrap our result to "results" property, and add extra information about pagination like below:
{
"_links": {
"next": "/api/users?limit=20&offset=20",
},
"offset": 0
"limit": 20,
"results": [
// Data gose here
],
"total_count": 100,
}