4

Initially I was working in SharePoint 2013 site with REST API from Get to know the SharePoint 2013 REST service here, Now suddenly the requirement changed, Now I have to work with same requirement but with SharePoint 2010 Site collection.

Can I still use the same REST End Points to work with SharePoint 2010? I tried but not able to use the same REST Calls with SharePoint 2010.

Please provide some reference link if its possible/impossible.

2

You can not use the same end points as like 2013. REST API in 2010 is very limited. There is option for Lists only as far as I know.

_vti_bin/listdata.svc/<list name>

You can perform GET, POST, UPDATE and DELETE request through above end point in a particular list.

Using the REST Interface

Some query operator like $select, $filter, $expand and $orderby works in GET request.

/_vti_bin/listdata.svc/InventoryLocations()?$filter=startswith(Part/SKU,'sku')&$orderby=Part/SKU&$expand=Part

List Items manipulation via REST API in SharePoint 2010

  • Ok Thanks. Just for now if you know then can you tell me can I Create Library, update Library Items , Create folder, Assign content types, and assign permission with REST API 2010? – Aakash Maurya Aug 1 '16 at 9:41
  • 1
    I did not try to Create Library, update Library Items , Create folder, Assign content types, and assign permission with REST API 2010 yet. I also don't know it is possible or not. You can perform CRUD on a list that's all I know. For your requirement, you have to go for JSOM, I gauge – Atish Dipongkor - MVP Aug 1 '16 at 9:55
  • 1
    Not REST but SOAP interfaces, check out SPServices – Danny '365CSI' Engelman Aug 1 '16 at 10:34
2

Nope, SP2010 has only ODATA v2.0 endopoint.
msdn
It is very similar to v3.0 api, but less powerful.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.