I've just started working with SharePoint 2013 on a company that uses a WCF service to return JSON data with .svc
-files and custom classes. I got the task to populate a table with items from a List
, and without looking at how they did it I used jQuery and AJAX to call
the
http://sp/_api/web/lists/getByTitle('titlehere')/Items
to display the data. This works fine for me, but I've seen in many places that people are using the url http://sp/_vti_bin/Namespace/Service.svc/Method
, as is the case with the company I'm at.
What are the differences and when should the two be used? As far as I reckon, you can use the later to manipulate the data more exclusively than when doing simple CRUD operations on the _api
, even though it seem to support alot of operations.
I read on a blog that _vti_bin
is older aswell. Does that mean I should focus on using the _api
instead?