以下过滤器子句在Graph Explorer中不起作用
https://graph.microsoft.com/v1.0/drives?$ filter = name eq'文档'
过滤器的应用是否存在任何限制,因为指定的过滤器是根据OData协议进行的
OneDrive API(和驱动器上的Graph API)不支持过滤或排序结果。当Microsoft Graph看到它不期望的查询参数时,它只是忽略未知的过滤器参数,并向我们返回未过滤的结果。该驱动器API支持$扩大,$选择,$ skipToken,$顶部,$排序依据(排序依据并不在我身边的工作)的OData查询参数定制响应。
我的测试数据:https : //graph.microsoft.com/v1.0/drives?$ filter = name eq'Documents'/ $ filter = driveType eq'documentLibrary'“:
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#drives",
"value": [
{
"createdDateTime": "2018-06-04T07:32:28Z",
"description": "List of all app packages uploaded in the Dev Site",
"id": "b!NEuoD0E0IkyGzigmyNtKyXtJFUgDWoBJhM2BFIAvNsp69o2q1-czTaV6INjgi_dk",
"lastModifiedDateTime": "2018-06-05T04:19:59Z",
"name": "App Packages",
"webUrl": "https://xxxx.sharepoint.com/Lists/AppPackages",
"driveType": "documentLibrary",
"createdBy": {
"user": {
"displayName": "System Account"
}
},
"quota": {
"deleted": 0,
"remaining": 0,
"total": 0,
"used": 0
}
}
]
}
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句