Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Views Better REST export

No security coverage Maintenance fixes only 142 sites

Part of the Views ecosystem · 280 projects

Views Better REST is a Drupal module that enhances the REST export display for views, enabling more flexible JSON output. It allows custom JSON structures, supports exposed filters, pagers, and sorts, and adds URL serializer support.

This module provides a new REST export display for Views, allowing you to return JSON from a View in a more flexible way.

Features

  • Define a custom JSON structure for a View by adding fields to the display and overriding their names.
  • Use exposed filters and provide available options for them.
  • Use an exposed pager and change the number of items per page.
  • Use exposed sorts.
  • URL serializer support.

Post-Installation

Create a View, add a display called “Better REST Export,” and select Fields as the display style.

Set a path, such as api/v1/my-view.

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

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

Works well with React Table.

Similar projects

REST Views - adds useful features to the standard REST export and can be used alongside this module.

JSON:API Views - works through JSON:API, but its path and exposed parameters are not configurable.

Drupal 9–11

Ask your assistant about Views Better REST export

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

  • rest Drupal core
  • views Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
5
Tracked since
Aug 2023
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 2
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
1.2.0 Stable 9–11 Mar 8, 2025
1.x-dev Dev 9–11 Mar 8, 2025
1.1.x-dev Dev 9–11 Oct 7, 2024
1.0.0 Stable 9–10 Sep 18, 2023
1.0.x-dev Dev 9–11 Aug 12, 2023