【发布时间】:2016-03-08 04:29:09
【问题描述】:
我正在试用 Azure 移动应用 API,但在进行 Patch 调用时遇到错误。
GET 和 POST 和 DELETE 工作正常。
这是我的网址的样子:
PATCH http://mymobileappapi.azurewebsites.net/tables/Skill/c89027fa-edce-4d36-b42a-ecb0920ebab6
正文:
{
"name": "Leadership SDFF"
}
我也将这些作为标题(正如我所说的其他 http 动词也可以。)
ZUMO-API-VERSION 2.0.0
Content-Type Application/Json
我在正文中收到 500 错误:
{
"error": "An item to update was not provided"
}
当我使用该 ID 执行 GET 时,相同的 id 工作...
当我使用 PUT 使用相同的正文进行相同的调用时,我得到一个 404 Not found,响应正文中没有任何内容。
有什么想法吗?
【问题讨论】:
-
当您使用包含 id 和 name 的正文 PUT /tables/Skill 时,您是否会遇到同样的问题?
-
我使用 PUT 得到 404,如问题末尾提到的,包括 id 和 name
-
感觉像一个错误。我建议在相关的 github 存储库中发布一个问题:.NET Server is github.com/azure/azure-mobile-apps-net-server and Node.js Server is github.com/azure/azure-mobile-apps-node
标签: azure azure-mobile-services