5个请求:
(1) 取delivery mode的CMS页面信息:
https://spartacus-dev0.eastus.cloudapp.azure.com:9002/occ/v2/electronics-spa/cms/pages?fields=DEFAULT&pageType=ContentPage&pageLabelOrId=%2Fcheckout%2Fdelivery-mode&lang=en&curr=USD
(2) 取cart的delivery address,delivery Mode,payment info:
https://spartacus-dev0.eastus.cloudapp.azure.com:9002/occ/v2/electronics-spa/users/current/carts/00008679?fields=deliveryAddress(FULL),deliveryMode,paymentInfo(FULL)&lang=en&curr=USD
(3) 设置某种delivery mode:这是一个HTTP put操作:
(4) 取cart信息:
https://spartacus-dev0.eastus.cloudapp.azure.com:9002/occ/v2/electronics-spa/users/current/carts/00008679?fields=DEFAULT,potentialProductPromotions,appliedProductPromotions,potentialOrderPromotions,appliedOrderPromotions,entries(totalPrice(formattedValue),product(images(FULL),stock(FULL)),basePrice(formattedValue,value),updateable),totalPrice(formattedValue),totalItems,totalPriceWithTax(formattedValue),totalDiscounts(value,formattedValue),subTotal(formattedValue),deliveryItemsQuantity,deliveryCost(formattedValue),totalTax(formattedValue,%20value),pickupItemsQuantity,net,appliedVouchers,productDiscounts(formattedValue),user&lang=en&curr=USD