getComponentHierarchy
get
/ccadmin/v1/components/{componentType}/{component}/hierarchy
Get Component Hierarchy. Gets the component hierarchy of the input component.
Request
Supported Media Types
- application/json
Path Parameters
-
component: string
The component id.
-
componentType: string
The type of component e.g. widget.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : getComponentHierarchy_response
Type:
Show Source
object
-
items(optional):
array items
Component Hierarchy Response
Nested Schema : items
Type:
Show Source
object
-
repositoryId(optional):
array repositoryId
The ID of the component that the hierarchy belongs to.
Nested Schema : repositoryId
Type:
array
The ID of the component that the hierarchy belongs to.
Show Source
Nested Schema : items
Type:
Show Source
object
-
allAncestors(optional):
array allAncestors
All the ancestors for the component.
-
ancestors(optional):
array ancestors
The ancestor component ids from the container instance hierarchy.
-
displayName(optional):
string
The display name of the layout
-
id(optional):
string
The ID of the layout the component an instance of.
-
maxAncestorDepth(optional):
integer
The maximum depth of the container instance hierarchy.
-
providesContext(optional):
array providesContext
The provided context from the container instance hierarchy.
-
type(optional):
string
The type of layout.
Nested Schema : ancestors
Type:
array
The ancestor component ids from the container instance hierarchy.
Show Source
Nested Schema : providesContext
Type:
array
The provided context from the container instance hierarchy.
Show Source
Example Response (application/json)
{
"items":[
{
"cancelItemDetailsWidgetInst_v2":[
{
"maxAncestorDepth":0,
"providesContext":[
],
"displayName":"Order Details Layout",
"allAncestors":[
],
"id":"orderDetailsPage",
"ancestors":[
],
"type":"page"
}
],
"links":[
{
"rel":"self",
"href":"http://localhost:9080/ccadmin/v1/components/widget/cancelItemDetails_v2/hierarchy"
}
]
}
]
}
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