I'm using rest to develop an add-in, the URL looks like this:
url: appurl + "/_api/SP.AppContextSite(@target)/web/lists/getByTitle('" + ListName + "')/items?$select=FileLeafRef,Modified,CheckoutUserId,AuthorId,OData__UIVersionString&@target='" + hosturl + "'"
I'm missing one thing, the documents relative URL. How can I get it?