Rudziankoŭ
Rudziankoŭ

Reputation: 11251

Thingworx: GET method not allowed

Here in tutorial is written:

The following API call executes the service GetBlogEntriesWithComments that is associated with the Thing called ThingWorxTrainingMaintenanceBlog. http://localhost/Thingworx/Things/ThingWorxTrainingMaintenanceBlog/Services/GetBlogEntriesWithComments

By this example I created Thing CarA and I want to call default service but I get 405 error code 'not implemented'

http://localhost:8080/Thingworx/Things/CarA/Services/GetProperties

Any ideas what I am doing wrong?

Upvotes: 1

Views: 852

Answers (1)

Rudziankoŭ
Rudziankoŭ

Reputation: 11251

Use POST request, dude:

curl -v --basic --user name:pass -X POST --header "Content-Type: application/json" http://localhost:8080/Thingworx/Things/CarA/Services/GetProperties?Accept=application/json

Upvotes: 1

Related Questions