getInstancesForWidgetDescriptor
get
/ccadmin/v1/widgetDescriptors/{id}/instances
Get Instances For Widget Descriptor. Get all instances of a particular widget descriptor type.
Request
Supported Media Types
- application/json
Path Parameters
-
id: string
The ID of the widget descriptor
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : getInstancesForWidgetDescriptor_response
Type:
Show Source
object
-
items(optional):
object items
Array of widget instances.
Nested Schema : items
Type:
object
Array of widget instances.
Show Source
-
descriptor(optional):
object descriptor
Widget descriptor details
-
displayName(optional):
string
The widget display name
-
repositoryId(optional):
string
The Repository Id
Nested Schema : descriptor
Type:
object
Widget descriptor details
Show Source
-
editableWidget(optional):
boolean
Whether the widget is editable
-
minWidth(optional):
integer
The minimum width
-
repositoryId(optional):
string
The Repository ID
Example Response (application/json)
[
{
"displayName":"Header - Basic Widget",
"repositoryId":"basicHeaderWidgetInst",
"descriptor":{
"repositoryId":"headerWidget",
"minWidth":1,
"editableWidget":true
}
},
{
"displayName":"Header Widget",
"repositoryId":"headerWidgetInst",
"descriptor":{
"repositoryId":"headerWidget",
"minWidth":1,
"editableWidget":true
}
}
]
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