I apologize for a stupid question. I am new at SharePoint. The task looks very basic, but solution eludes me for several days.
In SharePoint I have a Document Library, a number of document sets and some files uploaded to that document sets. Files have custom parameters. I need in a Java application to craft a HTTP get request that for a diven document set name will extract all parameters of all files and return them as a JSON object.
I tried request like:
<end point>/_api/web/GetFolderByRelativeUrs(</Document Library>/<Document Set>/files. This request returns properties of all files in the document set, but not custom properties.
I tries request like:
<end point>/_api/lists/getByTitle<Document Library>/items?@Filter=??? This request returns custom property, but only for a document set. I do not know how to dig deeper.
I tries to add ListItemAllFields to the end of the first query, but it returns failure. It does not understand ListItemAllFields at this level.I also tries something like this:
<end point>/_api/web/GetFolderByRelativeUrs(</Document Library>/<Document Set>/files('<file name>'/ListItemAllFields.
This query does return the file property, but not in a standard REST format so my parser cannot recognize it. In addition this query requires knowledge of the file name, that I do not have.
Please help.