首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Thingworx: GET方法不允许

Thingworx: GET方法不允许
EN

Stack Overflow用户
提问于 2016-04-15 08:30:37
回答 1查看 715关注 0票数 1

这里用教程写的是:

下面的API调用执行与名为GetBlogEntriesWithComments的事物相关联的服务ThingWorxTrainingMaintenanceBlog。http://localhost/Thingworx/Things/ThingWorxTrainingMaintenanceBlog/Services/GetBlogEntriesWithComments

通过这个例子,我创建了Thing CarA,我想调用默认的service,但是我得到了405个错误代码“未实现”

代码语言:javascript
复制
http://localhost:8080/Thingworx/Things/CarA/Services/GetProperties

你知道我做错了什么吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-04-15 12:45:30

使用POST请求,伙计:

代码语言:javascript
复制
curl -v --basic --user name:pass -X POST --header "Content-Type: application/json" http://localhost:8080/Thingworx/Things/CarA/Services/GetProperties?Accept=application/json
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/36642070

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档