REST API to manage documents in sharepoint RRS feed

  • Question

  • I am a Java developer looking to call to Sharepoint's REST API (ListData.svc) to manage documents.  I need to list and search documents (there is ample help on that topic), but I also will need to retrieve the actual document and insert the document.  I get that inserting would be with a POST request, but other than that, the help I find online has been weak on detail.  Especially since most examples are in .Net.

    So how would i go about submitting a document to be stored in sharepoint?  Would I just make up a URL in the collection like: ListData.svc/Document/NewDocumentName?  And where would the document need to be?  I assume part of the request body, but how so?

    Tuesday, February 7, 2012 7:17 PM


  • This question is probably better asked in the SharePoint 2010 developer forum.  In any case, the MSDN articles you want are:

    http://msdn.microsoft.com/en-us/library/ff798339.aspx - includes how to call REST using GET/POST/PUT/MERGE

    jliu - http://johnliu.net - http://sharepointgurus.net

    • Marked as answer by Emir Liu Thursday, February 16, 2012 2:43 AM
    Wednesday, February 8, 2012 3:18 AM