Skip to content
Snippets Groups Projects
Forked from project / jsonapi_links
2 commits behind, 18 commits ahead of the upstream repository.

JSON:API Links

The JSON:API Links module makes it possible to remove the "links" attributes from Drupal's JSON:API responses. This saves bandwidth by making responses more compact.

There is one exception: if you request /jsonapi (or the path you set as the root path), nothing will be removed.

You can toggle this behavior via a UI setting.

The approach this module takes was originally suggested by Wim Leers.

Submit bug reports and feature suggestions, or track changes in the issue queue.

Table of contents

  • Requirements
  • Recommended modules
  • Installation
  • Configuration
  • Maintainers

Requirements

This module requires no modules outside of Drupal core.

Installation

Install as you would normally install a contributed Drupal module. For further information, see Installing Drupal Modules.

Configuration

  1. Enable the module at Administration > Extend.
  2. Configure the module at /admin/config/services/jsonapi/links. To remove links, check Remove all links attributes.

Maintainers