Adding a "select" request option to the Graph API - doesn't behave as same as HTTP request.
LinkedList<Option> requestOptions = new LinkedList<Option>();
requestOptions.add(new QueryOption("select", "c300x400_crop"));
return graphClient.drives(getResourceDriveId())
.items(getitemId())
.thumbnails()
.buildRequest(requestOptions)
.get();
Actual Response body
{
"nextPage": null,
"currentPage": [
{
"oDataType": null,
"id": null,
"large": null,
"medium": null,
"small": null,
"source": null
}
],
"count": null
}
Expected Response:
HTTP/1.1 200 OK
Content-Type: application/json
{
"value": [
{
"id": "0",
"c300x400_crop": { "height": 300, "width": 400, "url": "https://sn3302files.onedrive.com/123"},
}
]
}
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
ID: 523f0af0-ae4a-f291-ab3d-fff65af335bb
Version Independent ID: 263e8b50-bd48-006f-fa3d-c7cfaad0ba69
Content: Retrieve thumbnails for a file or folder - Microsoft Graph v1.0
Content Source: api-reference/v1.0/api/driveitem-list-thumbnails.md
Product: sharepoint
Technology: microsoft-graph
GitHub Login: @JeremyKelley
Microsoft Alias: MSGraphDocsVteam