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

This module provides a new REST export display for views, which allows return JSON from view in a more flexible way.

Features

* Allow to define a custom JSON structure for the view by adding fields to the display abd overriding their names.
* Allow to use exposed filters with providing possible options for them.
* Allow to use exposed pager with changing number of items per page.
* Allow to use exposed sorts.
* Add URL serializer support.

Post-Installation

Create views, add a display called “Better REST Export” and select to show fields in style.

Set a path, like api/v1/my-view.

Just add fields to the display and override their names to define a custom JSON structure.

If needed, add exposed filters, sorts, and pager to the display.

Easy to use with react-tables.

Similar projects

REST Views — just add useful features over the standard rest export, can be used together with this module.
JSON:API Views — it is working through JSON:API, the path and exposed parameters are not configurable.

Supporting organizations: 
Sponsored initial development
Helped with development

Project information

Releases