Skip to main content
1-Visitor
April 9, 2015
Question

ThingWorx REST API Access

  • April 9, 2015
  • 5 replies
  • 7683 views

How to communicate to the ThingWorx composer server form Java App using REST Services. Could any one provide REST API documentation.

5 replies

praveenp1-VisitorAuthor
1-Visitor
April 9, 2015
1-Visitor
April 15, 2015

Unfortunately as far as I have been able to find out the Java Docs for the ThingWorx Java API isn't public yet. 

1-Visitor
April 9, 2015

Please go to support / Wiki and to the REST API section to learn more about the Thingworx REST API.

The other important thing to realize is that everything in the Thingworx model is exposed in our REST API.
If you are looking to do automatic type creation and management, I recommend you familiarize yourself with the Entity Services that are built-in within Thingworx.

1-Visitor
April 16, 2015

Hi,

We have gone through the Blog and understand that Thingworx service can be retrieved via rest api  using the url in the following format [http://localhost:8080/Thingworx/Things/ThingName/ServiceDefinitions/S | http://localhost:1977/Thingworx/Things/VMThing/ServiceDefinitions/GetAllVMDetails]erviceName?Accept=text/xml but this just returns the service definition. Please let us know how to get the return value in the form of xml/json so that a third party api can access the same.




1-Visitor
June 17, 2015
1-Visitor
April 16, 2015

 [http://localhost:8080/Thingworx/Things/ThingName/Service | http://localhost:1977/Thingworx/Things/VMThing/ServiceDefinitions/GetAllVMDetails]s alone will not work, it gives some invalid error that is why we have gave [http://localhost:8080/Thingworx/Things/ThingName/Service | http://localhost:1977/Thingworx/Things/VMThing/ServiceDefinitions/GetAllVMDetails]Definitions



praveenp1-VisitorAuthor
1-Visitor
April 20, 2015

Hi,

I want to post the data in to the Data Table by invoking the service AddDataTableEntry. Could you help me to how to pass the parameters to invoke this service using REST API.