Warning message

Documentation is currently being migrated into the new system. Some pages might be temporarily missing, and some guides might appear empty. Thank you for your patience while we are improving Drupal.org documentation.

GET on Views-generated lists

Last updated on
9 November 2016

The REST export display plugin uses the Serializer to output lists of entities in different formats (JSON, XML, ...).

NOTE: The REST export plugin does not use the REST resource plugin. The permissions defined by REST do not apply to Views.

  1. Ensure that the REST and Serialization modules are enabled.
  2. Create a view and add a REST export display. Make sure to add a path to the display. You'll be using this path to access the JSON/XML data.

    REST export display configuration screen

  3. Enable data formats (JSON, XML, ...) in the Serializer format settings.

    Setting the enabled formats