getAllWidgetDescriptorsByPageType
get
/ccadmin/v1/widgetDescriptors/pageType/{id}
Get All Widget Descriptors By Page Type. Get all widget descriptors by page type
Request
Supported Media Types
- application/json
Path Parameters
-
id: string
the id of the page type to get
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : getAllWidgetDescriptorsByPageType_response
Type:
Show Source
object
-
items(optional):
array items
description
Nested Schema : items
Type:
Show Source
object
-
availableToAllPages(optional):
boolean
Is this widget available to all pages
-
defaultLayout(optional):
object defaultLayout
The default layout
-
displayName(optional):
string
The widget display name
-
editableWidget(optional):
boolean
Is this widget editable
-
id:
string
the id of the widget descriptor
-
layouts(optional):
array layouts
Array of layouts that this widget appears on
-
pageTypes(optional):
array pageTypes
Array of page types
-
repositoryId(optional):
string
The Repository Id
-
widgetType(optional):
string
The widget type
Nested Schema : defaultLayout
Type:
object
The default layout
Show Source
-
description(optional):
string
the layout description
-
id(optional):
string
the layout id
-
name(optional):
string
the layout name
-
repositoryId(optional):
string
The Repository Id
-
sourceLocation(optional):
string
the layout source location
Nested Schema : items
Type:
Show Source
object
-
description(optional):
string
the layout description
-
id(optional):
string
the layout id
-
name(optional):
string
the layout name
-
repositoryId(optional):
string
The Repository Id
-
sourceLocation(optional):
string
the layout source location
Nested Schema : items
Type:
Show Source
object
-
alias(optional):
string
the fragment text
-
id(optional):
string
the fragment text
-
repositoryId(optional):
string
the fragment text
-
shortName(optional):
string
the fragment text
Example Response (application/json)
[
{
"displayName":"Checkout Confirmation",
"availableToAllPages":true,
"repositoryId":"checkoutConfirmation",
"id":"checkoutConfirmation",
"editableWidget":true,
"defaultLayout":null,
"pageTypes":[
{
"repositoryId":"confirmation",
"alias":"/confirmation",
"id":"confirmation",
"shortName":"confirmation"
}
],
"layouts":[
],
"widgetType":"checkoutConfirmation"
},
{
"displayName":"Confirmation Summary",
"availableToAllPages":true,
"repositoryId":"confirmationSummary",
"id":"confirmationSummary",
"editableWidget":true,
"defaultLayout":null,
"pageTypes":[
{
"repositoryId":"confirmation",
"alias":"/confirmation",
"id":"confirmation",
"shortName":"confirmation"
}
],
"layouts":[
],
"widgetType":"confirmationSummary"
}
]
Default Response
The error response
Root Schema : errorModel
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
errors(optional):
array errors
An optional list of errors if multiple errors were encountered
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code
-
type(optional):
string
The URI to the HTTP state code definition
Nested Schema : errors
Type:
array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code