Get all the top level categories
The following example shows how to get all the top level categories.
Request
GET /wcs/resources/store/11051/categoryview/@top HTTP/1.1
Host: wcstestserver.raleigh.ibm.com
Content-Type: application/json
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"CatalogGroupView": [
{
"identifier": "Furniture",
"name": "Furniture",
"productsURL": "http:\/\/wcstestserver.raleigh.ibm.com\/wcs\/resources\/store\/11051\/productview\/byCategory\/10351",
"resourceId": "http:\/\/wcstestserver.raleigh.ibm.com\/wcs\/resources\/store\/11051\/categoryview\/byId\/10351",
"shortDescription": "Furnish your entire home with this elegant collection",
"thumbnail": "images\/catalog\/furniture\/FU_sm.jpg",
"uniqueID": "10351"
},
{
"identifier": "Tableware",
"name": "Tableware",
"productsURL": "http:\/\/wcstestserver.raleigh.ibm.com\/wcs\/resources\/store\/11051\/productview\/byCategory\/10352",
"resourceId": "http:\/\/wcstestserver.raleigh.ibm.com\/wcs\/resources\/store\/11051\/categoryview\/byId\/10352",
"shortDescription": "Tableware for all occasions",
"thumbnail": "images\/catalog\/tableware\/TA_sm.jpg",
"uniqueID": "10352"
},
{
"identifier": "Kitchenware",
"name": "Kitchenware",
"productsURL": "http:\/\/wcstestserver.raleigh.ibm.com\/wcs\/resources\/store\/11051\/productview\/byCategory\/10353",
"resourceId": "http:\/\/wcstestserver.raleigh.ibm.com\/wcs\/resources\/store\/11051\/categoryview\/byId\/10353",
"shortDescription": "Kitchenware essentials for every home",
"thumbnail": "images\/catalog\/kitchenware\/KI_sm.jpg",
"uniqueID": "10353"
},
{
"identifier": "Apparel",
"name": "Apparel",
"productsURL": "http:\/\/wcstestserver.raleigh.ibm.com\/wcs\/resources\/store\/11051\/productview\/byCategory\/10379",
"resourceId": "http:\/\/wcstestserver.raleigh.ibm.com\/wcs\/resources\/store\/11051\/categoryview\/byId\/10379",
"shortDescription": "The latest styles for young kids.",
"thumbnail": "images\/catalog\/apparel\/Kids_clothing_sm.jpg",
"uniqueID": "10379"
},
{
"identifier": "Newsletters",
"name": "Newsletters",
"productsURL": "http:\/\/wcstestserver.raleigh.ibm.com\/wcs\/resources\/store\/11051\/productview\/byCategory\/10401",
"resourceId": "http:\/\/wcstestserver.raleigh.ibm.com\/wcs\/resources\/store\/11051\/categoryview\/byId\/10401",
"shortDescription": "Find newsletters on business, technology, personal finance and the financial industry.",
"thumbnail": "images\/catalog\/newsletters\/newsletters.jpg",
"uniqueID": "10401"
},
{
"identifier": "GroceryHealth",
"name": "Grocery\/Health",
"productsURL": "http:\/\/wcstestserver.raleigh.ibm.com\/wcs\/resources\/store\/11051\/productview\/byCategory\/10402",
"resourceId": "http:\/\/wcstestserver.raleigh.ibm.com\/wcs\/resources\/store\/11051\/categoryview\/byId\/10402",
"shortDescription": "Wide variety of grocery and health related products coverign all your everyday needs.",
"thumbnail": "images\/catalog\/grocery_health\/grocery_health.jpg",
"uniqueID": "10402"
}
],
"MetaData": [
{
"metaData": "1"
}
],
"recordSetComplete": "true",
"recordSetCount": "6",
"recordSetStartNumber": "0",
"recordSetTotal": "6",
"resourceId": "http:\/\/wcstestserver.raleigh.ibm.com\/wcs\/resources\/store\/11051\/categoryview\/@top",
"resourceName": "categoryview"
}