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 訊息頭,以發出資源更新請求。