I have a custom list 'MyList', containing a (single value) lookup field 'MyLookupField', which points to a library 'MyLibrary'. I now want to retrieve all items from 'MyList', including the Link to the corresponding file in the library.
I can lookup the Id or Title from the library:
_api/lists/getByTitle('MyList')/items?$select=Title,Template/Id&$expand=Template
But I was not successful to retrive the link to the file in the library:
_api/lists/getByTitle('MyList')/items?$select=Title,Template/FieldLeafRef&$expand=Template
Any idea if it is possible to retrieve the link to the file in a REST call or does this require a CAML query?