Magento 2.1.7 – Get Product’s Attributes Options via REST API

custom-attributesmagento-2.1.7productproduct-attributerest api

I would like to get more then one product's attributes options in one query
I have my url for one attribute option as follow:

http://magento2.dev/rest/V1/products/attributes/size/options

The above I am receiving all the options for size, now the question is:

How do one get attribute options for colour in the same call?

e.g One could do http://magento2.dev/rest/V1/products/attributes/size|colour/options

passing parameters separated by pipe or comma whatever how can one do this in Magento 2?

Thank you in advance.

Best Answer

I've found out how to get list options I was looking for, it's possible to get attributes groups with array with options like so:

http://magento2.dev/rest/V1/products/attributes?&searchCriteria[filterGroups][0][filters][0][field]=attribute_group_id&searchCriteria[filterGroups][0][filters][0][value]=31

Where 31 is the attribute_group_id of custom attribute group MISC