page

A store page. Contains information on the page such as SEO meta data.

Handler Class:

com.ibm.commerce.rest.pagelayout.handler.PageHandler

Method Summary

HTTP MethodPathDescription
GET/store/{storeId}/page?q={q}Finds pages by a query. See each query for details on input and output.
GET/store/{storeId}/page?q=byCatalogEntryIdsFinds pages by catalog entry IDs. Invalid catalog entry IDs are ignored.
GET/store/{storeId}/page?q=byCategoryIdsFinds pages by category IDs. Invalid category IDs are ignored.
GET/store/{storeId}/page?q=byNamesFinds pages by their names. Invalid page names are ignored.
GET/store/{storeId}/page?q=byPageIdsFinds pages by their IDs. Invalid page IDs are ignored.
GET/store/{storeId}/page?q=byUrlConfigurableFinds content pages with or without configurable URLs.
GET/store/{storeId}/page/{pageId}Finds a page by its ID.
GET/store/{storeId}/page/name/{name}Finds a page by its name.

Method Details

GET /store/{storeId}/page?q={q}

Finds pages by a query. See each query for details on input and output.

Handler Method:

findByQuery

Secure Call Mandatory:

false

Partial Authentication Allowed:

false

Parameters:
NameDescriptionParameter TypeData TypeRequiredAllow Multiple
storeIdThe store identifier.pathstringtrueN/A
qThe query name.querystringtruefalse
HTTP Status Codes:
HTTP Status CodeDescription
200The requested completed successfully.
400Bad request. Some of the inputs provided to the request aren't valid.
401Not authenticated. The user session isn't valid.
403The user isn't authorized to perform the specified request.
500Internal server error. Additional details will be contained on the server logs.

GET /store/{storeId}/page?q=byCatalogEntryIds

Finds pages by catalog entry IDs. Invalid catalog entry IDs are ignored.

Handler Method:

byCatalogEntryIds

Secure Call Mandatory:

false

Partial Authentication Allowed:

false

Parameters:
NameDescriptionParameter TypeData TypeRequiredAllow Multiple
storeIdThe store identifier.pathstringtrueN/A
qThe query name.querystringtruefalse
catalogEntryIdThe catalog entry ID.querystringtruetrue
HTTP Status Codes:
HTTP Status CodeDescription
200The requested completed successfully.
400Bad request. Some of the inputs provided to the request aren't valid.
401Not authenticated. The user session isn't valid.
403The user isn't authorized to perform the specified request.
500Internal server error. Additional details will be contained on the server logs.
Response Data Type:

page-IBM_Store_Summary_SEO


Example

Request:
GET /wcs/resources/store/10001/page?q=byCatalogEntryIds&catalogEntryId=12836&langId=-1&responseFormat=json
HTTP Status Code:

200

Response:
{
	"recordSetComplete": true,
	"recordSetCount": 1,
	"recordSetStartNumber": 0,
	"recordSetTotal": 1,
	"resourceId": "http:\/\/localhost:80\/wcs\/resources\/store\/10001\/page?q=byCatalogEntryIds&catalogEntryId=12836&langId=-1&responseFormat=json",
	"resourceName": "page",
	"resultList": [
		{
			"catalogEntryId": "12836",
			"fullImageAltDescription": "Image for StyleHome Modern Rimmed 3 Piece Sofa Set from Aurora",
			"metaDescription": "3 piece sofa set with a very modern design.",
			"metaKeyword": " StyleHome",
			"partNumber": "HFU032_3201",
			"title": "StyleHome Modern Rimmed 3 Piece Sofa Set | Aurora"
		}
	]
}

GET /store/{storeId}/page?q=byCategoryIds

Finds pages by category IDs. Invalid category IDs are ignored.

Handler Method:

byCategoryIds

Secure Call Mandatory:

false

Partial Authentication Allowed:

false

Parameters:
NameDescriptionParameter TypeData TypeRequiredAllow Multiple
storeIdThe store identifier.pathstringtrueN/A
qThe query name.querystringtruefalse
categoryIdThe category ID.querystringtruetrue
HTTP Status Codes:
HTTP Status CodeDescription
200The requested completed successfully.
400Bad request. Some of the inputs provided to the request aren't valid.
401Not authenticated. The user session isn't valid.
403The user isn't authorized to perform the specified request.
500Internal server error. Additional details will be contained on the server logs.
Response Data Type:

page-IBM_Store_Details_SEO


Example

Request:
GET /wcs/resources/store/10001/page?q=byCategoryIds&categoryId=10043&langId=-1&responseFormat=json
HTTP Status Code:

200

Response:
{
	"recordSetComplete": true,
	"recordSetCount": 1,
	"recordSetStartNumber": 0,
	"recordSetTotal": 1,
	"resourceId": "http:\/\/localhost:80\/wcs\/resources\/store\/10001\/page?q=byCategoryIds&categoryId=10043&langId=-1&responseFormat=json",
	"resourceName": "page",
	"resultList": [
		{
			"categoryId": "10043",
			"categoryIdentifier": "Furniture",
			"fullImageAltDescription": "Image for Furniture from Aurora",
			"metaDescription": "Furniture",
			"metaKeyword": "Furniture",
			"title": "Furniture | Aurora"
		}
	]
}

GET /store/{storeId}/page?q=byNames

Finds pages by their names. Invalid page names are ignored.

Handler Method:

byNames

Secure Call Mandatory:

false

Partial Authentication Allowed:

false

Parameters:
NameDescriptionParameter TypeData TypeRequiredAllow Multiple
storeIdThe store identifier.pathstringtrueN/A
qThe query name.querystringtruefalse
profileNameProfile name. Profiles determine the subset of data to be returned by a query.querystringfalsefalse
HTTP Status Codes:
HTTP Status CodeDescription
200The requested completed successfully.
400Bad request. Some of the inputs provided to the request aren't valid.
401Not authenticated. The user session isn't valid.
403The user isn't authorized to perform the specified request.
500Internal server error. Additional details will be contained on the server logs.
Response Data Type:

page-IBM_Store_Details


Example

Request:
GET /wcs/resources/store/10001/page?q=byNames&name=HelpPage&name=ContactUsPage&name=PrivacyPolicyPage&name=ReturnPolicyPage&name=CorporateContactUsPage&name=CorporateInfoPage&name=SiteMapPage&responseFormat=json
HTTP Status Code:

200

Response:
{
	"recordSetComplete": true,
	"recordSetCount": 7,
	"recordSetStartNumber": 0,
	"recordSetTotal": 7,
	"resourceId": "https:\/\/localhost:443\/wcs\/resources\/store\/10001\/page?q=byNames&name=HelpPage&name=ContactUsPage&name=PrivacyPolicyPage&name=ReturnPolicyPage&name=CorporateContactUsPage&name=CorporateInfoPage&name=SiteMapPage&responseFormat=json",
	"resourceName": "page",
	"resultList": [
		{
			"deletable": false,
			"name": "ContactUsPage",
			"nameEditable": false,
			"pageGroup": "Content",
			"pageId": "1002",
			"urlConfigurable": true
		},
		{
			"deletable": false,
			"name": "CorporateContactUsPage",
			"nameEditable": false,
			"pageGroup": "Content",
			"pageId": "1006",
			"urlConfigurable": true
		},
		{
			"deletable": false,
			"name": "CorporateInfoPage",
			"nameEditable": false,
			"pageGroup": "Content",
			"pageId": "1005",
			"urlConfigurable": true
		},
		{
			"deletable": false,
			"name": "HelpPage",
			"nameEditable": false,
			"pageGroup": "Content",
			"pageId": "1001",
			"urlConfigurable": true
		},
		{
			"deletable": false,
			"name": "PrivacyPolicyPage",
			"nameEditable": false,
			"pageGroup": "Content",
			"pageId": "1004",
			"urlConfigurable": true
		},
		{
			"deletable": false,
			"name": "ReturnPolicyPage",
			"nameEditable": false,
			"pageGroup": "Content",
			"pageId": "1003",
			"urlConfigurable": true
		},
		{
			"deletable": false,
			"name": "SiteMapPage",
			"nameEditable": false,
			"pageGroup": "Content",
			"pageId": "1007",
			"urlConfigurable": true
		}
	]
}

GET /store/{storeId}/page?q=byPageIds

Finds pages by their IDs. Invalid page IDs are ignored.

Handler Method:

byPageIds

Secure Call Mandatory:

false

Partial Authentication Allowed:

false

Parameters:
NameDescriptionParameter TypeData TypeRequiredAllow Multiple
storeIdThe store identifier.pathstringtrueN/A
qThe query name.querystringtruefalse
pageIdThe page ID.querystringtruetrue
profileNameProfile name. Profiles determine the subset of data to be returned by a query.querystringfalsefalse
HTTP Status Codes:
HTTP Status CodeDescription
200The requested completed successfully.
400Bad request. Some of the inputs provided to the request aren't valid.
401Not authenticated. The user session isn't valid.
403The user isn't authorized to perform the specified request.
500Internal server error. Additional details will be contained on the server logs.
Response Data Type:

page-IBM_Store_Details


Example

Request:
GET /wcs/resources/store/10001/page?pageId=1001&pageId=1002&q=byPageIds
HTTP Status Code:

200

Response:
{
	"recordSetComplete": true,
	"recordSetCount": 2,
	"recordSetStartNumber": 0,
	"recordSetTotal": 2,
	"resourceId": "https:\/\/localhost:8006\/wcs\/previewresources\/store\/10001\/page?pageId=1001&pageId=1002&q=byPageIds",
	"resourceName": "page",
	"resultList": [
		{
			"deletable": false,
			"name": "ContactUsPage",
			"nameEditable": false,
			"pageGroup": "Content",
			"pageId": "1002",
			"urlConfigurable": true
		},
		{
			"deletable": false,
			"name": "HelpPage",
			"nameEditable": false,
			"pageGroup": "Content",
			"pageId": "1001",
			"urlConfigurable": true
		}
	]
}

GET /store/{storeId}/page?q=byUrlConfigurable

Finds content pages with or without configurable URLs.

Handler Method:

byUrlConfigurable

Secure Call Mandatory:

false

Partial Authentication Allowed:

false

Parameters:
NameDescriptionParameter TypeData TypeRequiredAllow Multiple
storeIdThe store identifier.pathstringtrueN/A
qThe query name.querystringtruefalse
urlConfigurableWhether the URL of the page is configurable.querybooleantruefalse
profileNameProfile name. Profiles determine the subset of data to be returned by a query.querystringfalsefalse
pageNumberPage number, starting at 1. Valid values include positive integers of 1 and above. The "pageSize" must be specified for paging to work.queryintegerfalsefalse
pageSizePage size. Used to limit the amount of data returned by a query. Valid values include positive integers of 1 and above. The "pageNumber" must be specified for paging to work.queryintegerfalsefalse
HTTP Status Codes:
HTTP Status CodeDescription
200The requested completed successfully.
400Bad request. Some of the inputs provided to the request aren't valid.
401Not authenticated. The user session isn't valid.
403The user isn't authorized to perform the specified request.
500Internal server error. Additional details will be contained on the server logs.
Response Data Type:

page-IBM_Store_Details


Example

Request:
GET /wcs/resources/store/10001/page?q=byUrlConfigurable&urlConfigurable=false
HTTP Status Code:

200

Response:
{
	"recordSetComplete": true,
	"recordSetCount": 1,
	"recordSetStartNumber": 0,
	"recordSetTotal": 1,
	"resourceId": "http:\/\/localhost:80\/wcs\/resources\/store\/10001\/page?q=byUrlConfigurable&urlConfigurable=false",
	"resourceName": "page",
	"resultList": [
		{
			"deletable": false,
			"name": "HomePage",
			"nameEditable": false,
			"pageGroup": "Content",
			"pageId": "1008",
			"urlConfigurable": false
		}
	]
}

GET /store/{storeId}/page/{pageId}

Finds a page by its ID.

Handler Method:

findByPageId

Secure Call Mandatory:

false

Partial Authentication Allowed:

false

Parameters:
NameDescriptionParameter TypeData TypeRequiredAllow Multiple
storeIdThe store identifier.pathstringtrueN/A
pageIdThe page ID.pathstringtrueN/A
profileNameProfile name. Profiles determine the subset of data to be returned by a query.querystringfalsefalse
HTTP Status Codes:
HTTP Status CodeDescription
200The requested completed successfully.
400Bad request. Some of the inputs provided to the request aren't valid.
401Not authenticated. The user session isn't valid.
403The user isn't authorized to perform the specified request.
404The specified resource couldn't be found.
500Internal server error. Additional details will be contained on the server logs.
Response Data Type:

page-IBM_Store_Details


Example

Request:
GET /wcs/resources/store/10001/page/1001
HTTP Status Code:

200

Response:
{
	"recordSetComplete": true,
	"recordSetCount": 1,
	"recordSetStartNumber": 0,
	"recordSetTotal": 1,
	"resourceId": "https:\/\/localhost:8006\/wcs\/previewresources\/store\/10001\/page\/1001",
	"resourceName": "page",
	"resultList": [
		{
			"deletable": false,
			"name": "HelpPage",
			"nameEditable": false,
			"pageGroup": "Content",
			"pageId": "1001",
			"urlConfigurable": true
		}
	]
}

GET /store/{storeId}/page/name/{name}

Finds a page by its name.

Handler Method:

findByName

Secure Call Mandatory:

false

Partial Authentication Allowed:

false

Parameters:
NameDescriptionParameter TypeData TypeRequiredAllow Multiple
storeIdThe store identifier.pathstringtrueN/A
profileNameProfile name. Profiles determine the subset of data to be returned by a query.querystringfalsefalse
HTTP Status Codes:
HTTP Status CodeDescription
200The requested completed successfully.
400Bad request. Some of the inputs provided to the request aren't valid.
401Not authenticated. The user session isn't valid.
403The user isn't authorized to perform the specified request.
404The specified resource couldn't be found.
500Internal server error. Additional details will be contained on the server logs.
Response Data Type:

page-IBM_Store_Details


Example

Request:
GET /wcs/resources/store/10001/page/name/HomePage?profileName=IBM_Store_Details&langId=-1&responseFormat=json
HTTP Status Code:

200

Response:
{
	"recordSetComplete": true,
	"recordSetCount": 1,
	"recordSetStartNumber": 0,
	"recordSetTotal": 1,
	"resourceId": "http:\/\/localhost:80\/wcs\/resources\/store\/10001\/page\/name\/HomePage?profileName=IBM_Store_Details&langId=-1&responseFormat=json",
	"resourceName": "page",
	"resultList": [
		{
			"deletable": false,
			"fullImageAltDescription": "Image for Aurora home page",
			"metaDescription": "Shop Aurora online. Commerce Model Store entity",
			"metaKeyword": "Aurora Commerce Model Store entity",
			"name": "HomePage",
			"nameEditable": false,
			"pageGroup": "Content",
			"pageId": "1008",
			"title": "Welcome to Aurora",
			"urlConfigurable": false
		}
	]
}

Data Type Details

page-CatalogEntryView

Properties:
NameData TypeRequired
metaKeywordstringfalse
catalogEntryIdstringfalse
userDataFieldpage-CatalogEntryView.userDataField arrayfalse
metaDescriptionstringfalse
titlestringfalse
partNumberstringtrue
fullImageAltDescriptionstringfalse

page-CatalogEntryView.userDataField

Properties:
NameData TypeRequired
valuestringfalse
keystringtrue

page-CatalogGroupView

Properties:
NameData TypeRequired
metaKeywordstringfalse
userDataFieldpage-CatalogGroupView.userDataField arrayfalse
metaDescriptionstringfalse
categoryIdentifierstringfalse
titlestringfalse
categoryIdstringfalse
fullImageAltDescriptionstringfalse

page-CatalogGroupView.userDataField

Properties:
NameData TypeRequired
valuestringfalse
keystringtrue

page-IBM_Store_Details

Properties:
NameData TypeRequired
recordSetTotalstringfalse
recordSetCompletestringfalse
recordSetStartNumberstringfalse
resultListpage-IBM_Store_Details_item arrayfalse
recordSetCountstringfalse

page-IBM_Store_Details_item

Properties:
NameData TypeRequired
pageGroupstringfalse
metaKeywordstringfalse
deletablestringfalse
userDataFieldpage-IBM_Store_Details_item.userDataField arrayfalse
metaDescriptionstringfalse
urlConfigurablestringfalse
titlestringfalse
pageIdstringfalse
namestringfalse
nameEditablestringfalse
fullImageAltDescriptionstringfalse

page-IBM_Store_Details_item.userDataField

Properties:
NameData TypeRequired
valuestringfalse
keystringtrue

page-IBM_Store_Details_SEO

Properties:
NameData TypeRequired
recordSetTotalstringfalse
recordSetCompletestringfalse
recordSetStartNumberstringfalse
resultListpage-CatalogGroupView arrayfalse
recordSetCountstringfalse

page-IBM_Store_Summary_SEO

Properties:
NameData TypeRequired
recordSetTotalstringfalse
recordSetCompletestringfalse
recordSetStartNumberstringfalse
resultListpage-CatalogEntryView arrayfalse
recordSetCountstringfalse