http://MyServer:MyPort/connector/MyAPIPortName/api.rsc/Cars
响应
重写 HTTP 方法
某些客户端可能无法为特定操作发出正确的 HTTP 方法。可以使用@x-http-method 查询字符串输入参数或 X-HTTP-Method HTTP 消息头来覆盖请求的 HTTP 方法。例如,不支持 HTTP PUT 方法的客户端可以在 GET 请求中包含 X-HTTP-Method: PUT 消息头,以发出资源更新请求。Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
将 API 资源公开给授权用户和 IP 地址,并查询 API 端口。
http://MyServer:MyPort/connector/MyAPIPortName/api.rsc/Cars
响应
{
"@odata.context":"http://MyServer:MyPort/connector/MyAPIPortName/api.rsc/$metadata#Cars",
"value":[
{ "Id": "10001", "Model": "MyModel1", "Color": "Red" },
{ "Id": "10002", "Model": "MyModel2", "Color2": "Blue" }
]
}
@x-http-method 查询字符串输入参数或 X-HTTP-Method HTTP 消息头来覆盖请求的 HTTP 方法。例如,不支持 HTTP PUT 方法的客户端可以在 GET 请求中包含 X-HTTP-Method: PUT 消息头,以发出资源更新请求。