This project is not covered by Drupal’s security advisory policy.

This module adds HTTP Link headers for the "pagers" of a Views Rest Export.

Simply enable it and you will see Link headers such as:

Link: <http://www.example.com/my/rest/export?page=1>; rel="self", <http://www.example.com/my/rest/export?page=0>; rel="first",
<http://www.example.com/my/rest/export?page=2>; rel="next",
<http://www.example.com/my/rest/export?page=2>; rel="last"

This can be used to facilitate client-side paging by systems integrating with your Views-driven Web API.

Contributors

The most significant piece of this code came from the hard work in #2100637: REST views: add special handling for collections

Compatibility

To use this module with Drupal 8.1.x, you will need to apply the patch from #2779807: Bring RestExport::buildResponse into line with Feed::buildResponse

Otherwise this should work fine with Drupal >= 8.2.

F.A.Q.

Will there be a Drupal 7 backport?

If someone else wants to create and maintain one.

Roadmap

Only current plans for this module beyond basic maintenance are to be deprecated by issues such as #2803413: [PP-1] REST views: add HTTP Link pager.

Supporting organizations: 
sponsored development
sponsored development

Project information

Releases