getConfigDefinitionForWidgetDescriptor

get

/ccadmin/v1/widgetDescriptors/{id}/config

Get Config Definition For Widget Descriptor. Get the Config Definition for the Widget Descriptor

Request

Supported Media Types
Path Parameters
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : getConfigDefinitionForWidgetDescriptor_response
Type: object
Show Source
Nested Schema : items
Type: object
response
Show Source
Nested Schema : values
Type: array
Values array
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : options
Type: array
Array of options to choose.
Show Source
Nested Schema : items
Type: object
Show Source
Example Response (application/json)
{
    "values":[
        {
            "helpText":"Enter the number of items you want to display in the mini cart before scrolling is required.",
            "defaultValue":"3",
            "minLength":0,
            "label":"Number of items in mini cart before scrolling",
            "type":"text",
            "required":true,
            "displayOnInstances":null,
            "name":"miniCartNumberOfItems",
            "repositoryId":"100004",
            "options":[
            ],
            "regexText":null,
            "displayAsCheckboxes":false,
            "maxLength":1000
        },
        {
            "helpText":"Set whether mini-cart should be displayed for 'add to cart' notification.",
            "defaultValue":"true",
            "minLength":0,
            "label":"Display Mini-Cart",
            "type":"checkbox",
            "required":false,
            "displayOnInstances":null,
            "name":"displayMiniCart",
            "repositoryId":"100005",
            "options":[
            ],
            "regexText":null,
            "displayAsCheckboxes":false,
            "maxLength":1000
        },
        {
            "helpText":"Set the duration for the display of the mini-cart (in secs).",
            "defaultValue":"5",
            "minLength":0,
            "label":"Duration (in secs)",
            "type":"text",
            "required":true,
            "displayOnInstances":null,
            "name":"miniCartDuration",
            "repositoryId":"100006",
            "options":[
            ],
            "regexText":null,
            "displayAsCheckboxes":false,
            "maxLength":1000
        }
    ],
    "repositoryId":"headerWidget",
    "links":[
        {
            "rel":"self",
            "href":"http://localhost:9080/ccadminui/v1/widgetDescriptors/headerWidget/config"
        }
    ],
    "___etag___":"eyJoYXNoIjoiaG5KcDB0QU83eGphc0dKYVVlRXR5UUZGSG1acldFRWU2cGVGV1lXd25aRT0iLCJ1cmkiOiIvY2NhZG1pbnVpL3YxL3dpZGdldERlc2NyaXB0b3JzL2hlYWRlcldpZGdldC9jb25maWciLCJ2ZXJzaW9uIjowfQ=="
}

Default Response

The error response
Body ()
Root Schema : errorModel
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top