在docs API v2店面docs中指出,如果我想使用option_type
filter[options][myoption]=value
上过滤我的API,
我目前在产品上附加了一个带有价值的选项tshirt-color
Red
,但是当我运行https://mywebsite.io/api/v2/storefront/products?filter[options][tshirt-color]=Red
我的回答是空的,我在做什么错了?
data: [ ],
meta: {
count: { },
total_count: 0,
total_pages: 0
},
links: {
self: "https://stern-telecom-react-salman15.c9users.io/api/v2/storefront/products?filter[options][kleur]=Rood",
next: "https://stern-telecom-react-salman15.c9users.io/api/v2/storefront/products?filter%5Boptions%5D%5Bkleur%5D=Rood&page=0",
prev: "https://stern-telecom-react-salman15.c9users.io/api/v2/storefront/products?filter%5Boptions%5D%5Bkleur%5D=Rood&page=1",
last: "https://stern-telecom-react-salman15.c9users.io/api/v2/storefront/products?filter%5Boptions%5D%5Bkleur%5D=Rood&page=0",
first: "https://stern-telecom-react-salman15.c9users.io/api/v2/storefront/products?filter%5Boptions%5D%5Bkleur%5D=Rood&page=1"
}
}