gpt4 book ai didi

s4sdk - 使用 ODataQueryBuilder 或 VDM 的 OData $batch 请求

转载 作者:行者123 更新时间:2023-12-01 16:21:50 25 4
gpt4 key购买 nike

有没有办法使用 ODataQueryBuilder 或 VDM 生成的类来发送 OData 批处理请求?

例子:

假设我正在使用 Northwind 公共(public) OData 服务 ( https://services.odata.org/V2/Northwind/Northwind.svc/ )

由于网络性能,我想在一个请求中查询客户、类别和地区,如下所示:

网址:https://services.odata.org/V2/Northwind/Northwind.svc/ $批量

--batch_8008-578f-c3c1
Content-Type: application/http
Content-Transfer-Encoding: binary

GET Customers HTTP/1.1
Accept: application/json
Accept-Language: en
DataServiceVersion: 2.0
MaxDataServiceVersion: 2.0


--batch_8008-578f-c3c1
Content-Type: application/http
Content-Transfer-Encoding: binary

GET Categories HTTP/1.1
Accept: application/json
Accept-Language: en
DataServiceVersion: 2.0
MaxDataServiceVersion: 2.0


--batch_8008-578f-c3c1
Content-Type: application/http
Content-Transfer-Encoding: binary

GET Regions HTTP/1.1
Accept: application/json
Accept-Language: en
DataServiceVersion: 2.0
MaxDataServiceVersion: 2.0


--batch_8008-578f-c3c1--

(我在 Postman 中测试过,它有效。)

我还有其他情况,这会非常有用,例如一次读取多个单独的条目,发送 ChangeSets 以更改“事务”中的多个条目,以及调用函数导入。

最佳答案

此功能尚不支持,但当然是完全有效的。一旦有关此事的更新可用,我们将更新此问题。

关于s4sdk - 使用 ODataQueryBuilder 或 VDM 的 OData $batch 请求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53345508/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com