Get all products belonging to a category based on the category unique ID
The following example shows how to get all products belonging to a category based on the category unique ID.
Request
GET /wcs/resources/store/11051/productview/byCategory/10371 HTTP/1.1
Host: testserver.mycompany.com
Content-Type: application/json
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"CatalogEntryView": [
{
"Price": [
{
"priceDescription": "L",
"priceUsage": "Display",
"priceValue": "21.95"
},
{
"priceDescription": "O",
"priceUsage": "Offer",
"priceValue": "19.99"
}
],
"buyable": "true",
"fullImage": "\/wcsstore\/Madisons2\/images\/catalog\/kitchenware\/kitchenware_160x160\/KIFR_01.jpg",
"fullImageAltDescription": "Image for Classic Frying Pan from Madisons2",
"longDescription": "Easy to cook in --- and to clean. For families that cook, but do not need high-performance cookware. Convenience that fits comfortably within your budget.",
"metaDescription": "Easy to cook in --- and to clean.",
"metaKeyword": "ProductKeyword ProductManufacturerName",
"name": "Classic Frying Pan",
"parentCategoryID": "10371",
"partNumber": "KIFR-01",
"productType": "ProductBean",
"resourceId": "http:\/\/testserver.mycompany.com\/wcs\/resources\/store\/11051\/productview\/byId\/11923",
"shortDescription": "Easy to cook in --- and to clean.",
"storeID": "11051",
"thumbnail": "\/wcsstore\/Madisons2\/images\/catalog\/kitchenware\/kitchenware_70x70\/KIFR_01.jpg",
"title": "Classic Frying Pan | Madisons2",
"uniqueID": "11923"
},
{
"Price": [
{
"priceDescription": "L",
"priceUsage": "Display",
"priceValue": "145.99"
},
{
"priceDescription": "O",
"priceUsage": "Offer",
"priceValue": "129.99"
}
],
"buyable": "true",
"fullImage": "\/wcsstore\/Madisons2\/images\/catalog\/kitchenware\/kitchenware_160x160\/KIFR_02.jpg",
"fullImageAltDescription": "Image for Chef's Wok from Madisons2",
"longDescription": "A durable wok for the super-heated chef. Put this wok to work on a super-hot stove, wash it multiple times, and cook acidic sauces in it in a flash. This wok will be able to handle it all, with its guaranteed-for-life non-stick coating.",
"metaDescription": "A durable wok for the super-heated chef.",
"metaKeyword": "ProductKeyword ProductManufacturerName",
"name": "Chef's Wok",
"parentCategoryID": "10371",
"partNumber": "KIFR-02",
"productType": "ProductBean",
"resourceId": "http:\/\/testserver.mycompany.com\/wcs\/resources\/store\/11051\/productview\/byId\/11925",
"shortDescription": "A durable wok for the super-heated chef.",
"storeID": "11051",
"thumbnail": "\/wcsstore\/Madisons2\/images\/catalog\/kitchenware\/kitchenware_70x70\/KIFR_02.jpg",
"title": "Chef's Wok | Madisons2",
"uniqueID": "11925"
},
{
"Price": [
{
"priceDescription": "L",
"priceUsage": "Display",
"priceValue": "39.95"
},
{
"priceDescription": "O",
"priceUsage": "Offer",
"priceValue": "34.99"
}
],
"buyable": "true",
"fullImage": "\/wcsstore\/Madisons2\/images\/catalog\/kitchenware\/kitchenware_160x160\/KIFR_03.jpg",
"fullImageAltDescription": "Image for Ultra-Deluxe Frying Pan from Madisons2",
"longDescription": "Excellent durability for all your cooking needs. Easy to cook in and to clean. Added abrasion- and scratch-resistance makes the surface work better and last longer. Hard base and heavy gauge ensure a lifetime of usage.",
"metaDescription": "Excellent durability for all your cooking needs.",
"metaKeyword": "ProductKeyword ProductManufacturerName",
"name": "Ultra-Deluxe Frying Pan",
"parentCategoryID": "10371",
"partNumber": "KIFR-03",
"productType": "ProductBean",
"resourceId": "http:\/\/testserver.mycompany.com\/wcs\/resources\/store\/11051\/productview\/byId\/11927",
"shortDescription": "Excellent durability for all your cooking needs.",
"storeID": "11051",
"thumbnail": "\/wcsstore\/Madisons2\/images\/catalog\/kitchenware\/kitchenware_70x70\/KIFR_03.jpg",
"title": "Ultra-Deluxe Frying Pan | Madisons2",
"uniqueID": "11927"
}
],
"MetaData": [
{
"metaData": "1"
}
],
"recordSetComplete": "true",
"recordSetCount": "3",
"recordSetStartNumber": "0",
"recordSetTotal": "3",
"resourceId": "http:\/\/testserver.mycompany.com\/wcs\/resources\/store\/11051\/productview\/byCategory\/10371",
"resourceName": "productview"
}