Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

views_better_rest

105 sites No security coverage
View on drupal.org

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.

Activity

Total releases
2
First release
Mar 2025
Latest release
1 year ago
Release cadence
0 days
Stability
50% stable

Releases

Version Type Release date
1.2.0 Stable Mar 8, 2025
1.x-dev Dev Mar 8, 2025