I have a Sharepoint hosted app that retreive documents from a library and I want that the name of the file has a link to open the document directly to the client Office app. The SP hosted app is made with angular 2 and I am working with REST.
The endpoint i'm using for get the files is:
_spPageContextInfo.siteAbsoluteUrl + "/_api/lists/getbytitle('Documentos')/items?$select=FileRef,Title&$filter=ContentType eq '" + cttypeName + "'";
Is there a property in the file that has that url?