AnsweredAssumed Answered

SugarCRM CE 6.5.17 - Rest API v4.1 - rest.php returns PHP code instead of JSON response

Question asked by Joseph Joseph on Aug 12, 2014
Latest reply on May 17, 2018 by Sharat Baradwaj
We're building SugarCRM integration with our help-desk product for our customers and we're stuck here.

I make a request to http://127.0.0.1:8001/sugarcrm/service/v4_1/rest.php along with the JSON data as in the screenshot, but the response I get is a PHP script instead of the actual response in JSON format.

The SugarCRM application, on the other hand, works perfectly fine.

Could something be done to make the API work? Am I missing something here?

Here's a screenshot of the request and response.

Outcomes