getWidgetDescriptorById
get
/ccadmin/v1/widgetDescriptors/{id}
Get Widget Descriptor By Id. Get the widget descriptor by the id
Request
Supported Media Types
- application/json
Path Parameters
-
id(required): string
the id of the widget descriptor
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : getWidgetDescriptorById_response
Type:
Show Source
object
-
items:
object items
Widget details
Nested Schema : items
Type:
object
Widget details
Show Source
-
availableToAllPages:
boolean
Is this widget available to all pages
-
configurable:
boolean
Is this widget configurable
-
defaultLayout:
object defaultLayout
The default layout
-
displayName:
string
the display name text
-
editableWidget:
boolean
Is this widget editable
-
id:
string
the Widget Id
-
isLatestVersion:
boolean
Is this latest version of the widget
-
jsEditable:
boolean
Is this widget JavaScript editable
-
latestVersion:
integer
The latest version value of the widget
-
layouts:
array layouts
Array of layouts that this widget appears on
-
minWidth:
integer
The minimum width required by the widget
-
pageTypes:
array pageTypes
An array of page types
-
repositoryId:
string
The Repository Id
-
version:
integer
The widget instance
-
widgetType:
string
The widget type
Nested Schema : defaultLayout
Type:
object
The default layout
Show Source
-
description:
string
the layout description
-
id:
string
the layout id
-
name:
string
the layout name
-
repositoryId:
string
The Repository Id
-
sourceLocation:
string
the layout source location
Nested Schema : items
Type:
Show Source
object
-
description:
string
the layout description
-
id:
string
the layout id
-
name:
string
the layout name
-
repositoryId:
string
The Repository Id
-
sourceLocation:
string
the layout source location
Nested Schema : items
Type:
Show Source
object
-
alias:
string
the page type alias
-
id:
string
the layout id
-
repositoryId:
string
The Repository Id
-
shortName:
string
the layout description
Example Response (application/json)
{
"isLatestVersion":true,
"displayName":"Header",
"availableToAllPages":true,
"jsEditable":false,
"minWidth":1,
"version":1,
"layouts":[
{
"name":"headerWidgetDefaultLayout",
"repositoryId":"headerWidgetDefaultLayout",
"description":"Default Panel",
"sourceLocation":"headerWidgetDefaultLayout/widget.template",
"id":"headerWidgetDefaultLayout"
}
],
"widgetType":"headerWidget",
"latestVersion":1,
"repositoryId":"headerWidget",
"links":[
{
"rel":"self",
"href":"http://localhost:9080/ccadminui/v1/widgetDescriptors/headerWidget"
}
],
"editableWidget":true,
"id":"headerWidget",
"defaultLayout":{
"name":"headerWidgetDefaultLayout",
"repositoryId":"headerWidgetDefaultLayout",
"description":"Default Panel",
"sourceLocation":"headerWidgetDefaultLayout/widget.template",
"id":"headerWidgetDefaultLayout"
},
"pageTypes":[
],
"configurable":true
}
Default Response
The error response
Root Schema : errorModel
Type:
Show Source
object
-
devMessage:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
errors:
array errors
An optional list of errors if multiple errors were encountered
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code
-
type:
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:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code