使用API

问题描述 投票:0回答:1

/rest/V1/products?searchCriteria[filter_groups][0][filters][0][field]=tags&searchCriteria[filter_groups][0][filters][0][value]=my tag

我尝试了这个,但遇到了错误。

{ “消息”:“”“%1”属性名称无效。重置名称并重试。 “参数”: [ “标签” 这是给出的 }

我需要获取所有可用标签的列表。 say我在Magento UI中有所有类似标签的列表。

我的标签
Mytag2

Mytag3

Mytag4
    我的tag5
  • 我需要访问它们作为列表,并以其名称专门访问它们。
  • go到
  • 商店>属性>product
  • 并找到
  • “标签”
  • 属性。确保:

curl magento tags magento2 magento-rest-api
1个回答
0
投票
“在搜索中使用”

“在店面上的目录页面上可见”设置为YES.

  • “在产品清单中使用”如果您希望在API中可用。

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.