Thingworx:不允许使用GET方法

时间:2016-04-15 08:30:37

标签: thingworx

此处tutorial写道:

  

以下API调用执行服务GetBlogEntriesWithComments   与被称为Thing的东西有联系   ThingWorxTrainingMaintenanceBlog。   http://localhost/Thingworx/Things/ThingWorxTrainingMaintenanceBlog/Services/GetBlogEntriesWithComments

通过此示例,我创建了Thing CarA ,我想调用默认service,但我收到405错误代码'未实现'

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

任何想法我做错了什么?

1 个答案:

答案 0 :(得分:1)

使用POST请求,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