Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Rest -API Library Item Url

$
0
0
$(function () {
             var endPointUrl = _spPageContextInfo.webAbsoluteUrl + "/_api/web/GetFolderByServerRelativeUrl('mydocs')/Files?$selelct=Name,File/LinkingUrl&$expand=File";
            var headers = {"accept": "application/json;odata=verbose"
            };
            jQuery.ajax({
                url: endPointUrl,
                type: "GET",
                headers: headers,
                success: function (data) {
                    var _Rows = data.d.results.map(function (a) {
                        var rObj = {};
                        rObj["Name"] = a.Name;
                        rObj["LinkingUrl"] = a.LinkingUrl;
                        return rObj;
                    });
                    new Vue({
                        el: '#adminsSDS',
                        data: {
                            rows: _Rows
                        }
                    });
                }
            })
        });
Not able to get the link right to display it in a page?

Abenet


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>