Reputation: 1937
Here is the link to get file name. But I want to get the Folder names using REST query. Please Help
Upvotes: 0
Views: 1518
Reputation: 11
For me it was "RootFolder/ServerRelativeUrl"
SharepointAPI.GetLists({params:{$select:"Id,Title,EntityTypeName,RootFolder/ServerRelativeUrl",$expand:"RootFolder"}}).$promise.then(function(result) { ... }); this.GetLists = function(params) { return {$promise: $http({ method: 'GET' , url: app_web_url+"/_api/web/lists" , params: params.params , headers: { "accept": "application/json; odata=verbose" } }) .then(function(response) { return response.data; }) }; };
Upvotes: 1
Reputation: 3379
Try calling this endpoint:
/_api/web/Lists/GetByTitle('Site Assets')/Items?$expand=Folder&$select=Title,Folder/ServerRelativeUrl
Upvotes: 0