Panels Rest Expose

Categories

Component ID

2876450

Component name

Panels Rest Expose

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

105

Component created

Component changed

Component body

Introduction

Panels REST Expose provides panels as REST in a specified manner attached as a screenshot.

The format which in which the JSON has been exposed, is providing the layout by taking the metadata of a Panels' node using a database query.

It checks for the entry of a panels metadata under db table "panelizer_node" and on the basis of URL parameter (node ID of Panels) to the REST call, exposes the JSON.

This can also be an advantage for decoupled architectures where the need is to expose complete layout with all components information.

Please report issues with this module at https://www.drupal.org/project/issues/panels_rest_expose.

Example Endpoint

After installation of this module, please go to /admin/config. Under Services section you would find REST. Enable the endpoint by providing required settings.

Once done, it can be accessed as
http://[YOUR_DOMAIN_NAME]/panels/layout/?_format=json

Requirements

This module requires the following modules:

  • serialization
  • restful
  • panels

Recommended Modules

Another module "Restful Panels", works on the same basis, however, it's just for D7. Here is the link:
https://www.drupal.org/project/restful_panels