https://app.swaggerhub.com/apis/DeRain/sylius-shop_api/1.0.0#/
Za sve koji testiraju na lokalnom Syliusu, da ovi APIji rade potrebno je u Sylius dodatno instalirati i konfiguirati SyliusShopApiPlugin:
https://github.com/Sylius/SyliusShopApiPlugin
http://sylius.loc/shop-api/taxon-products-by-slug/books?channel=US_WEB
GET
&locale=en_US - optional
&page=2&limit=15
Same thing by taxon code:
http://sylius.loc/shop-api/taxon-products/books?channel=US_WEB&page=1
GET
http://sylius.loc/shop-api/carts/{cartId}
POST
{channel: 'US_WEB'}
Note: You need to generate unique cartId here yourself!! You decide what cartId will be, Sylius just remembers it. It should be something unique and imposible to guess, so don't use numeric ids or similar.
Returns: whole cart
http://sylius.loc/shop-api/carts/{cartId}
GET
Returns: whole cart
http://sylius.loc/shop-api/carts/{cartId}/items
POST
{
productCode: {productCode},
quantity: 2,
}
Returns: whole cart, you have new cart item inside, it's id, etc.
http://sylius.loc/shop-api/carts/{cartId}/items/{cartItemId}
DELETE