I'm developing a mobile app to connect with my Drupal Commerce (Kickstart) store, using a REST server.
When I do GET:
endpoint/rest/product it retrieves the products list
<result is_array="true"> <item> <revision_id>1</revision_id> <sku>TOT1-GRN-OS</sku> <title>Tote Bag 1</title> <revision_uid>1</revision_uid> <status>1</status> <log /> <revision_timestamp>1423972403</revision_timestamp> <data /> <product_id>1</product_id> <type>bags_cases</type> <language>und</language> <uid>1</uid> <created>1423972403</created> <changed>1423972403</changed> <title_field>Tote Bag 1</title_field> <commerce_price> <amount>1600</amount> <currency_code>EUR</currency_code> <data> <components /> </data> </commerce_price> ... </item> <item> ... </item>
Everything looks fine. I can even GET
endpoint/rest/product?status=1 and it does filter well.
I'm trying to filter by commerce_price.amount:
but it's not working. I have no problems filtering by a first level key, but can't access second level ones and so on. What am I doing wrong?