Definition of a widget. Contains information on the widget but not its inclusion in a layout.
com.ibm.commerce.rest.pagelayout.handler.WidgetDefinitionHandler
| HTTP Method | Path | Description |
|---|---|---|
| GET | /store/{storeId}/widget_definition?q={q} | Finds widget definitions by a query. See each query for details on input and output. |
| GET | /store/{storeId}/widget_definition?q=byIdentifiers | Finds widget definitions by their IDs. Invalid widget definition IDs are ignored. |
| GET | /store/{storeId}/widget_definition?q=byWidgetDefinitionIds | Finds widget definitions by their IDs. Invalid widget definition IDs are ignored. |
| GET | /store/{storeId}/widget_definition/{widgetDefinitionId} | Finds a widget definition by its ID. |
| GET | /store/{storeId}/widget_definition/identifier/{identifier} | Finds a widget definition by its identifier. |
Finds widget definitions by a query. See each query for details on input and output.
findByQuery
false
false
| Name | Description | Parameter Type | Data Type | Required | Allow Multiple |
|---|---|---|---|---|---|
| storeId | The store identifier. | path | string | true | N/A |
| q | The query name. | query | string | true | false |
| HTTP Status Code | Description |
|---|---|
| 200 | The requested completed successfully. |
| 400 | Bad request. Some of the inputs provided to the request aren't valid. |
| 401 | Not authenticated. The user session isn't valid. |
| 403 | The user isn't authorized to perform the specified request. |
| 500 | Internal server error. Additional details will be contained on the server logs. |
Finds widget definitions by their IDs. Invalid widget definition IDs are ignored.
byIdentifiers
false
false
| Name | Description | Parameter Type | Data Type | Required | Allow Multiple |
|---|---|---|---|---|---|
| storeId | The store identifier. | path | string | true | N/A |
| q | The query name. | query | string | true | false |
| identifier | The widget definition identifier. | query | string | true | false |
| HTTP Status Code | Description |
|---|---|
| 200 | The requested completed successfully. |
| 400 | Bad request. Some of the inputs provided to the request aren't valid. |
| 401 | Not authenticated. The user session isn't valid. |
| 403 | The user isn't authorized to perform the specified request. |
| 500 | Internal server error. Additional details will be contained on the server logs. |
widget_definition-IBM_Store_Summary
GET /wcs/resources/store/10001/widget_definition?q=byIdentifiers&identifier=HomePageContainer&identifier=NON_EXISTING
200
{
"recordSetComplete": true,
"recordSetCount": 1,
"recordSetStartNumber": 0,
"recordSetTotal": 1,
"resourceId": "http:\/\/localhost:80\/wcs\/resources\/store\/10001\/widget_definition?q=byIdentifiers&identifier=HomePageContainer&identifier=NON_EXISTING",
"resourceName": "widget_definition",
"resultList": [
{
"definitionXml": "<Definition> <\/Definition>",
"identifier": "HomePageContainer",
"path": "Container\/HomePageContainer.jsp",
"state": "active",
"storeId": "10001",
"widgetDefinitionId": "1001",
"widgetType": "Container"
}
]
}
Finds widget definitions by their IDs. Invalid widget definition IDs are ignored.
byWidgetDefinitionIds
false
false
| Name | Description | Parameter Type | Data Type | Required | Allow Multiple |
|---|---|---|---|---|---|
| storeId | The store identifier. | path | string | true | N/A |
| q | The query name. | query | string | true | false |
| widgetDefinitionId | The widget definition ID. | query | string | true | false |
| HTTP Status Code | Description |
|---|---|
| 200 | The requested completed successfully. |
| 400 | Bad request. Some of the inputs provided to the request aren't valid. |
| 401 | Not authenticated. The user session isn't valid. |
| 403 | The user isn't authorized to perform the specified request. |
| 500 | Internal server error. Additional details will be contained on the server logs. |
widget_definition-IBM_Store_Summary
GET /wcs/resources/store/10001/widget_definition?q=byWidgetDefinitionIds&widgetDefinitionId=-1&widgetDefinitionId=-2&widgetDefinitionId=1001
200
{
"recordSetComplete": true,
"recordSetCount": 1,
"recordSetStartNumber": 0,
"recordSetTotal": 1,
"resourceId": "http:\/\/localhost:80\/wcs\/resources\/store\/10001\/widget_definition?q=byWidgetDefinitionIds&widgetDefinitionId=-1&widgetDefinitionId=-2&widgetDefinitionId=1001",
"resourceName": "widget_definition",
"resultList": [
{
"definitionXml": "<Definition> <\/Definition>",
"identifier": "HomePageContainer",
"path": "Container\/HomePageContainer.jsp",
"state": "active",
"storeId": "10001",
"widgetDefinitionId": "1001",
"widgetType": "Container"
}
]
}
Finds a widget definition by its ID.
findByWidgetDefinitionId
false
false
| Name | Description | Parameter Type | Data Type | Required | Allow Multiple |
|---|---|---|---|---|---|
| storeId | The store identifier. | path | string | true | N/A |
| widgetDefinitionId | The widget definition ID. | path | string | true | N/A |
| HTTP Status Code | Description |
|---|---|
| 200 | The requested completed successfully. |
| 400 | Bad request. Some of the inputs provided to the request aren't valid. |
| 401 | Not authenticated. The user session isn't valid. |
| 403 | The user isn't authorized to perform the specified request. |
| 404 | The specified resource couldn't be found. |
| 500 | Internal server error. Additional details will be contained on the server logs. |
widget_definition-IBM_Store_Summary
GET /wcs/resources/store/10001/widget_definition/1001
200
{
"recordSetComplete": true,
"recordSetCount": 1,
"recordSetStartNumber": 0,
"recordSetTotal": 1,
"resourceId": "https:\/\/localhost:8006\/wcs\/previewresources\/store\/10001\/widget_definition\/1001",
"resourceName": "widget_definition",
"resultList": [
{
"definitionXml": "<Definition> <\/Definition>",
"identifier": "HomePageContainer",
"path": "Container\/HomePageContainer.jsp",
"state": "active",
"storeId": "10001",
"widgetDefinitionId": "1001",
"widgetType": "Container"
}
]
}
Finds a widget definition by its identifier.
findByIdentifier
false
false
| Name | Description | Parameter Type | Data Type | Required | Allow Multiple |
|---|---|---|---|---|---|
| storeId | The store identifier. | path | string | true | N/A |
| identifier | The widget definition identifier. | path | string | true | N/A |
| HTTP Status Code | Description |
|---|---|
| 200 | The requested completed successfully. |
| 400 | Bad request. Some of the inputs provided to the request aren't valid. |
| 401 | Not authenticated. The user session isn't valid. |
| 403 | The user isn't authorized to perform the specified request. |
| 404 | The specified resource couldn't be found. |
| 500 | Internal server error. Additional details will be contained on the server logs. |
widget_definition-IBM_Store_Summary
GET /wcs/resources/store/10001/widget_definition/identifier/%24%26%5B%7B%7D%28%3D*%29%2B%5D%21%23%7E%25%60%3A%3C%3E%3B%2C.
200
{
"recordSetComplete": true,
"recordSetCount": 1,
"recordSetStartNumber": 0,
"recordSetTotal": 1,
"resourceId": "http:\/\/localhost:80\/wcs\/resources\/store\/10001\/widget_definition\/identifier\/%24%26%5B%7B%7D%28%3D*%29%2B%5D%21%23~%25%60%3A%3C%3E%3B%2C.",
"resourceName": "widget_definition",
"resultList": [
{
"definitionXml": "<Definition> <\/Definition>",
"identifier": "$&[{}(=*)+]!#~%`:<>;,.",
"path": "Container\/HomePageContainer.jsp",
"state": "active",
"storeId": "10001",
"widgetDefinitionId": "1001",
"widgetType": "Container"
}
]
}
| Name | Data Type | Required |
|---|---|---|
| recordSetTotal | string | false |
| recordSetComplete | string | false |
| recordSetStartNumber | string | false |
| resultList | widget_definition-IBM_Store_Summary_item array | false |
| recordSetCount | string | false |
| Name | Data Type | Required |
|---|---|---|
| state | string | false |
| widgetDefinitionId | string | false |
| definitionXml | string | false |
| path | string | false |
| userDataField | widget_definition-IBM_Store_Summary_item.userDataField array | false |
| vendor | string | false |
| identifier | string | false |
| widgetProperty | widget_definition-WidgetProperty array | false |
| storeId | string | false |
| widgetObjectName | string | false |
| widgetType | string | false |
| Name | Data Type | Required |
|---|---|---|
| value | string | false |
| key | string | true |
| Name | Data Type | Required |
|---|---|---|
| value | string | false |
| userDataField | widget_definition-WidgetProperty.userDataField array | false |
| name | string | false |
| storeId | string | false |
| sequenceOrder | string | false |
| Name | Data Type | Required |
|---|---|---|
| value | string | false |
| key | string | true |