简体   繁体   English

如何将 shopware 6 作为无头服务与 Next.js 集成?

[英]How to integrate shopware 6 as headless service with Next js?

Is it possible to use Shopware 6 as a headless service with Nextjs.是否可以将 Shopware 6 用作 Nextjs 的无头服务。 For example, I am using BigCommerce on my nextjs projects, but I would like to use shopware if it is possible.例如,我在我的 nextjs 项目上使用 BigCommerce,但如果可能的话我想使用 shopware。

Shopware 6 was designed as a headless platform first and foremost. Shopware 6 首先被设计为一个无头平台。 The storefront it comes with is using the API internally as well.它附带的店面也在内部使用 API。

There are multiple projects using Shopware as a headless environment.有多个项目使用 Shopware 作为无头环境。 You can at look at them for reference.您可以查看它们以供参考。

For further reading see the documentation on the Store API .如需进一步阅读,请参阅商店 API上的文档。

It's possible and I did it.这是可能的,我做到了。 Here my project https://priwatt.de/这是我的项目https://priwatt.de/

I use this documentation https://shopware.stoplight.io/docs/admin-api/adminapi.json Also I use SDK from Shopware it's handy but not mandatory.我使用此文档https://shopware.stoplight.io/docs/admin-api/adminapi.json我还使用 Shopware 的 SDK 它很方便但不是强制性的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM