SharePoint rest api gives user flexibility to retrieve data via URL.
Not only can this be used in development, but also can be used for debugging, such as, checking if list item data is returning from sharepoint list.
This is a whole new approach in comparison to sharepoint 2007, where rest service was not available, and only invoking web service methods were possible.
Below format of calling a sharepoint
http://(sharepoint site url)/_api/lists/getbytitle('<sharepoint list name>')/items
Replace <sharepoint list name> with the sharepoint list name.
for example,
if sharepoint site url = http://www.metadatadescription.com/
and sharepoint list name = AnnouncementCategory
then rest api url is:
http://www.metadatadescription.com/_api/lists/getbytitle('AnnouncementCategory')/items
No comments:
Post a Comment