api - Shopware 6: Query country states using the store api
问题描述
I want to query country states via the store-API (https://docs.shopware.com/en/shopware-platform-dev-en/store-api-guide/sales-channel?category=shopware-platform-dev-en/store-api-guide) In the documentation I don't see anything regarding countries, but I have the following reference: GET /store-api/v3/context gives
{
...
salesChannel: {
countries: [
{
...
state: null
...
}
]
}
}
As you can see, this doesn't include the country states...
Shopware Version 6.3.3.1
解决方案
您可以使用GET /store-api/v3/country?associations[states][]
端点。
推荐阅读
- python - 使用开发人员信息引发异常的正确方法
- .net - 自定义 Winforms 设计器控件同时缩放和平移控件
- server - 如何访问云服务器上基于桌面的应用程序
- spring-data-jpa - Spring JPA 组合查询,每个查询具有不同的排序
- azure-devops - AzureDevops 静态网站未从私有源中找到 NuGet 包
- java - 如何在 Android Studio 生成的二维码中添加保存图像?
- material-ui - 是否可以在鼠标悬停时将工具提示添加到材质 ui 自动完成组件?
- windows - 链接到颤动中的按钮
- transactions - 如何在我的网络应用程序中实施更便宜的银行账户经常性借记?
- android - 获取您的 Android 模拟器时出了点问题!确保您的路径正确 VS Code