【发布时间】:2020-01-07 17:06:32
【问题描述】:
我正在尝试在邮递员中发布 OData 批处理请求。
网址:
http://localhost:52484/$batch
标题:
Content-Type : multipart/mixed; boundary=batch_36522ad7-fc75-4b56-8c71-56071383e77b
正文(原始):
--batch_36522ad7-fc75-4b56-8c71-56071383e77b
Content-Type: application/http
Content-Transfer-Encoding:binary
GET /Schools?$top=1
Host: host
--batch_36522ad7-fc75-4b56-8c71-56071383e77b
但出现以下错误:
{
"Message": "No HTTP resource was found that matches the request URI 'http://localhost:52484/%24batch'.",
"MessageDetail": "No route providing a controller name was found to match request URI 'http://localhost:52484/%24batch'"
}
知道请求中缺少什么吗?
【问题讨论】:
标签: asp.net-web-api odata postman