Trigger Rest-API via curl

This snippet shows how to call a REST-API via curl. It also tells you how you can do a Basic-HTTP-Authentification to legitimate the call.

Make additional product attributes available over REST-API

To do this you only have to add a api2.xml in your modules etc folder that puts the necessary product tags into the node /config/api2/resources/product/attributes (xPath):

After that you can edit your REST-Attribute permissions, where you’ll find the newly defined attributes. Then a call to die products -API will show you the new Attributes.