cancel
Showing results for 
Search instead for 
Did you mean: 

Nesting in attribute search API

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

Nesting in attribute search API

 

While fetching attribute info, if I apply search criteria in a nested way, it does not work. But in case of single search criteria it works perfectly.

 

Nested HTTP request:

http://192.168.1.180/magento/index.php/rest/V1/products/attributes?searchCriteria[filter_groups][0][...

Output: 
{
  "items": [],
  "search_criteria": {
    "filter_groups": [
      {
        "filters": [
          {
            "field": "attribute_code",
            "value": "size",
            "condition_type": "eq"
          },
          {
            "field": "attribute_code",
            "value": "color",
            "condition_type": "eq"
          }
        ]
      }
    ]
  },
  "total_count": 0
}

But when I hit the non nested one, I get results for both size as well as color.

Non Nested:

http://192.168.1.180/magento/index.php/rest/V1/products/attributes?searchCriteria[filter_groups][0][...

1 REPLY 1

Re: Nesting in attribute search API

Just FYI, there may be a bug relevant to this area that has been identified.