Provide endpoint to expose UI endpoint settings

Created on 22 July 2023, over 1 year ago
Updated 29 July 2023, over 1 year ago

Problem/Motivation

At the moment the UI settings are exposed only through Block and drupalSettings, that are not decoupled from Drupal. The endpoint is missing that exposes the UI settings in fully decoupled solution.

Steps to reproduce

If you do not use Block, there is no way to retrieve the UI settings.

Proposed resolution

Create endpoint /api/search/<endpoint_id>/ui-settings to retrieve the UI Elements configuration in the same format as for drupalSettings with Block.

Remaining tasks

Create method to get configuration in Endpoint class, use it both for new endpoint and drupalSettings.

User interface changes

None.

API changes

New endpoint available, new method to get UI Settings in Endpoint class.

Data model changes

None

Feature request
Status

Fixed

Version

1.0

Component

User interface

Created by

🇩🇪Germany a.dmitriiev

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024