Rest api, how to retrieve json


#1

Hi,
I have get method https://ptcu-thingworx83-fundamentals.portal.ptc.io/Thingworx/Things/MyThing/Properties
it returns html which is not suitable for external app, is it possible to get json instead?

Where can I find documentation for rest api


#2

You can set the ‘accept’ header value in your HTTP Request as ‘application/json’ to get the response in JSON format.

If you are using PostMan, Clicking on the Headers tab on the Request pane shows the headers key-value editor. Set the appropriate header value from there.

The below link provides a quickstart course on ThingWorx REST API: