Cumulocity 中的 OData 样式查询
OData-style querying in Cumulocity
我想向 Cumulocity 发送 OData 查询。
我得到一些文档指向平台中查询的特殊格式:
...&q=$filter%3D(c8y_Availability.status+eq+%27AVAILABLE%27)
顺便说一句,它不起作用(用于警报列表)。你支持 OData 查询吗?你能给我一个在 cumulocity 中查询 OData 的示例吗?
看这里:http://cumulocity.com/guides/reference/inventory/#query-language
本节底部有示例。
提示:您还可以在设备管理应用程序中编辑设备列表的过滤器时查看 Chrome 开发人员工具。您上面的示例在开发人员工具中看起来像这样:
https://demos.cumulocity.com/inventory/managedObjects?currentPage=1&pageSize=100&q=$filter%3D(c8y_Availability.status+eq+%27AVAILABLE%27)&withGroups=true&withTotalPages=true
...这看起来很像上面的示例。
我想向 Cumulocity 发送 OData 查询。 我得到一些文档指向平台中查询的特殊格式:
...&q=$filter%3D(c8y_Availability.status+eq+%27AVAILABLE%27)
顺便说一句,它不起作用(用于警报列表)。你支持 OData 查询吗?你能给我一个在 cumulocity 中查询 OData 的示例吗?
看这里:http://cumulocity.com/guides/reference/inventory/#query-language
本节底部有示例。
提示:您还可以在设备管理应用程序中编辑设备列表的过滤器时查看 Chrome 开发人员工具。您上面的示例在开发人员工具中看起来像这样:
https://demos.cumulocity.com/inventory/managedObjects?currentPage=1&pageSize=100&q=$filter%3D(c8y_Availability.status+eq+%27AVAILABLE%27)&withGroups=true&withTotalPages=true
...这看起来很像上面的示例。