Skip to content

Add pagination information to API's json output #3

@webcracy

Description

@webcracy

Should be present in all outputs that are paginated.

Example:

{
  'data':  {
    'totalItems': 120,
    'items': [...]
  },
  'pagination':  {
    'current_page': 1,
    'per_page': 30,
    'next_page': 2,
    'previous_page': null,
    'total_pages': 4
  }
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions