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
- Enable the module at Administration > Extend.
- Configure the module at
/admin/config/services/jsonapi/links
. To remove links, check Remove all links attributes.