SharePoint: Enumerating items inside Folder using REST

Scenario: Get List items present in a folder in SharePoint list using REST query.
Solution: Consider the following folders present inside the list.

Following are the items inside Folder1

Following REST queries can be used to get items from the Folder1

  • http://demo2010a:90/_vti_bin/ListData.svc/ListA/?$filter=Path eq '/ListA/Folder1'
  • http://demo2010a:90/_vti_bin/ListData.svc/ListA/?$filter=endswith(Path, 'Folder1')
In the first example a folder relative url is provided.

And the result is as shown below:

profile for Nadeem Yousuf at SharePoint Stack Exchange, Q&A for SharePoint enthusiasts