GET items in document library does not include .docx or .xlsx
Hello, I am new to using the SharePoint API but I am having difficulty getting a list of items in our document library. When I GET _api/Web/Lists(guid'my_guid')/items it only returns the .doc files in the library, the .docx and .xlsx files are not included. I can GET /files, but I need the metadata about each file which I understand is the use for /items. It seems like this is a bug. Thank you.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: e5a8f160-c2fd-8692-1c3f-2c5c44c7a286
- Version Independent ID: 2d7064f8-409c-4465-3fbb-bd6a4c2806f5
- Content: Working with lists and list items with REST
- Content Source: docs/sp-add-ins/working-with-lists-and-list-items-with-rest.md
- Product: sharepoint
- GitHub Login: @VesaJuvonen
- Microsoft Alias: vesaj
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
I can get data about .docx items if I do GET https://{site_url}/_api/web/lists/GetByTitle('Test')/items({item_id})
The .docx and .xlsx items show up if I put a filter like the following. Just odd.
_api/Web/Lists/getbytitle('myDocLibrary')/items?$filter=(Id lt 1000)