ThingWorx REST API
ThingWorx REST API
REST (Representational State Transfer) is an important communication tool and provides much of the communication goodness that Web Services are used for, but without many of the complexities. As a result, REST is much easier to work with and can be used by any client that is capable of making an HTTP request. The potential clients that may interact and integrate with ThingWorx is vast.
The examples in this topic assume that you are familiar with executing HTTP POSTS in your web development environment or application.
URL Pattern
Based on the terms provided above, the following URL pattern is used when communicating with ThingWorx:
<http/https:><host:port>/Thingworx/<entity collection>/<entity>/<characteristic collection>/<characteristic>?<query parameters>
Anything enclosed in < > is information you may need to provide. Some user-supplied information in the example above is required, while some is optional. The information that is required depends on the type of request being made.
The following API call executes the service GetBlogEntriesWithComments that is associated with the Thing called ThingWorxTrainingMaintenanceBlog.
Related Links
ThingWorx REST Design
Updating, Deleting, and Executing Through the API
Updating the Request Method and Content Type Filtering for CSRF Protection