如何通过Restful API的方式读取SAP Commerce Cloud的Product图片

2019-11-05
阅读 1 分钟
1.2k
需求:我在SAP Commerce Cloud的backoffice里给某product维护了一些图片: 分别位于Normal,Thumbnails和Others等字段: 现在我想通过Restful API的方式,给定一个product code,读出这个product维护的image数据。 api endpoint: [链接];host>/rest/v2/electronics/products/I042416?fields=FULL 返回的response里包...

如何通过Restful API的方式读取SAP Commerce Cloud的Product Reference

2019-11-05
阅读 2 分钟
1.2k
从SAP官网上找到api的说明: [链接] api endpoint: /rest/v2/electronics/products/I042416/references 其中referenceType参数的值从枚举类ProductReferenceTypeEnum里获得: 下图是Hybris commerce On-Premises里对应的代码,当然也可以查询SAP帮助文档找到这些枚举值: 这种reference关系类似于CRM里的relationship,...