1
OData $ countパラメータは、OneDrive用のMicrosoft Graph API v1.0ではサポートされていないようです。
リクエストURL:?
{
"error": {
"code": "",
"message": "The query specified in the URI is not valid. Query option 'Count' is not allowed. To allow it, set the 'AllowedQueryOptions' property on EnableQueryAttribute or QueryValidationSettings.",
"innerError": {
"request-id": "e65aff74-1c6f-434b-8cd3-04e0c247fb71",
"date": "2016-10-19T09:48:39"
}
}
}
は、この理解は正しいです:https://graph.microsoft.com/v1.0/me/drive/root/children $ =真
レスポンスを数えますか?
ありがとう:
はこれは、子項目の数が含まれている
folder
プロパティが含まれています。 OData仕様によると、$ countシステムクエリはクエリ文字列に渡されます。http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part2-url-表記規則/ odata-v4.0-errata03-os-part2-url-conventions-complete.html#_Toc453752356 –また、Microsoft Graph APIもこれについて説明しています。https://graph.microsoft.io/en-us/docs/overview/query_parameters#count –