Pavan Kumar
Pavan Kumar

Reputation: 1735

Receive JSON format through REST api without using REST Client

IN magento, as I am using REST api to get the product details with url like http://myserver.com/magento/api/rest/products? But this url returns only in XML format. But I need it in the JSON format.

Can anyone suggest me how to get it in JSON format without using REST client??

Upvotes: 0

Views: 3275

Answers (1)

kuhajeyan
kuhajeyan

Reputation: 11017

you need to set request header explicitly to application/json then the response is served in json.

Upvotes: 3

Related Questions