General usage

Last updated on
5 June 2025

When accessing any route in Drupal, if the url includes format=json as a GET parameter, it will rerouted through the Transform API and instead of outputting HTML, it outputs JSON. This works for all entities and all controller routes as long as the appropriate plugin or configuration is present. It will also retain cachability and permission requirements.

If you want only want specific regions of a route, you can specify it using region=my-region as a GET parameter, or multiple regions separated by commas, like region=my-region,my-region2. That way you could load only the content or header of a page and minimize the json size.

User authentification is done through the JWT module.

Help improve this page

Page status: No known problems

You can: