I am trying to retrieve a list of documents in our document library using the API. I do a GET call to https://mysite.sharepoint.com/sites/RapidMachiningSolutionsLLC/_api/Web/Lists/getbytitle('myDocLibrary')/items, but the data that I receive is only for the .doc files in the library.
There are multiple ways to retrieve files from the Document library.
Using the REST API you have used, we need to add select and expand in the query as below.
Another approach is to use GetFolderByServerRelativeUrl method to get all the files.
Make sure you are using the INTERNAL NAME of your document library.