Shopware 6 Storefront API

Shopware 6 Storefront API

Shopware 6 comes with a powerful REST-API, one can use this API by using the HTTP-client. Talking about Storefront API, which has been introduced in Shopware 6.2 with its beta version, eventually, this will completely replace the current Sales Channel API in version 6.4.0.0. If you haven't started using Store-API yet then you better hurry. 

The current Saleschannel API

The diagram below illustrates the overview of Saleschannel API and its working mechanism, one can clearly see that the Storefront and the Saleschannel API both depend on the same service but they use different controllers. Oftentimes, implementing some storefront features in the Saleschannel API takes a lot of manual work due to its existing gap within the available functions in between API and storefront.

No alt text provided for this image

Ref: Saleschannel API

The Storefront API

The first difference that we see in the following diagram is that the storefront is using the same controller that of the API which leads that the functionality implemented for either of the API is automatically available for both. The API controllers are services, they are being called Routes internally.

No alt text provided for this image

Ref: Storefront API

Takeaway:

The Sales Channel API is deprecated and will be removed with 6.4.0.0. Consider using the Store-API.

More useful links:

Store API guide: https://docs.shopware.com/en/shopware-platform-dev-en/store-api-guide

More about Store API: https://www.shopware.com/en/news/the-new-shopware-6-store-api/

要查看或添加评论,请登录

Yubraj Ghimire的更多文章

社区洞察

其他会员也浏览了