Module Description
The Page Serializer extends the default Serializer to include pagination data. This module is intended to be used with rest and the Rest export View with a decoupled UI. Including the pagination, data lets the front end know the total record count and other useful information. This eliminates the need to make another rest endpoint to get the total number of records.

Roadmap
Documentation.

Similar projects and how they are different
Using Serializer with Views, only the rows are returned. This module extends Serializer to return the pagination data. All the property names are customizable, and properties can be disabled to meet the needs of the front end.

Views Serialization Pager is another contributed module which also exposes pagination data.

Support the Drupal Association
You can support the continued success of the Drupal project by choosing to become a member or donate.

Sample output
Pager Serializer produces output like the following.

{ rows: [ {...}, {...} ], pager: { current_page: 0, total_items: 6, total_pages: 2, items_per_page: 5, } } New community member and active community member requests will be prioritized. Please consider getting involved, and funding development.
Project Usage
1006
Creation Date
Changed Date
Security Covered
Covered By Security Advisory
Version Available
Production
Module Summary
[
{
"rows": [
{ "..." },
{ "..." }
],
"pager": {
"current_page": 0,
"total_items": 6,
"total_pages": 2,
"items_per_page": 5
}
}
]
Data Name
pager_serializer

OPENAI CHATBOT

OPENAI CHATBOT

16:30:31
Generic Chatbot
Hi, I'm a Drupal module expert powered by OpenAI, answering your questions about the Drupal module ecosystem. How can I be helpful today? Please note that we will log your question.