I'm working on adding links to an e-commerce website which allow adding a product to a cart.
Given only one product, the URL is pretty straigthforward: /BuyNow/{SKU}/{Quantity}
.
However, the website owners wish to be able to form links which mention several products. Which URL pattern would be the best to use in this case?
I've come with several options, but I can't say I like any of them.
/BuyNow/{sku1}/{q1}/{sku2}/{q2}/(...)
/BuyNow/{sku1};{q1}/{sku2};{q2}/(...)
/BuyNow?Items[0].sku={sku1}&Items[0].qty={q1}&(...)