You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@olingo.apache.org by ch...@apache.org on 2014/04/03 10:59:26 UTC
svn commit: r1584299 -
/olingo/site/trunk/content/doc/tutorials/batchClientApi.mdtext
Author: chrisam
Date: Thu Apr 3 08:59:26 2014
New Revision: 1584299
URL: http://svn.apache.org/r1584299
Log:
CMS commit to olingo by chrisam
Modified:
olingo/site/trunk/content/doc/tutorials/batchClientApi.mdtext
Modified: olingo/site/trunk/content/doc/tutorials/batchClientApi.mdtext
URL: http://svn.apache.org/viewvc/olingo/site/trunk/content/doc/tutorials/batchClientApi.mdtext?rev=1584299&r1=1584298&r2=1584299&view=diff
==============================================================================
--- olingo/site/trunk/content/doc/tutorials/batchClientApi.mdtext (original)
+++ olingo/site/trunk/content/doc/tutorials/batchClientApi.mdtext Thu Apr 3 08:59:26 2014
@@ -28,7 +28,9 @@ A BatchQueryPart is a representation of
- contentId(String)
- headers(List<String>)
-<pre><code>BatchQueryPart request = BatchQueryPart.method("GET").uri("$metadata").build();</pre></code>
+<pre><code>
+BatchQueryPart request = BatchQueryPart.method("GET").uri("$metadata").build();
+</pre></code>
**Note:** The valid method value is GET.
@@ -41,14 +43,15 @@ A BatchChangeSetPart is a representation
- contentId(String)
- body(String)
- <pre><code>Map<String, String> changeSetHeaders = new HashMap<String, String>();
- changeSetHeaders.put("content-type", "application/json;odata=verbose");
- BatchChangeSetPart changeRequest = BatchChangeSetPart.method("PUT")
- .uri("Employees('2')/EmployeeName")
- .headers(changeSetHeaders)
- .body("{\"EmployeeName\":\"Frederic Fall MODIFIED\"}")
- .build();
- ...</pre></code>
+<pre><code>Map<String, String> changeSetHeaders = new HashMap<String, String>();
+changeSetHeaders.put("content-type", "application/json;odata=verbose");
+BatchChangeSetPart changeRequest = BatchChangeSetPart.method("PUT")
+.uri("Employees('2')/EmployeeName")
+.headers(changeSetHeaders)
+.body("{\"EmployeeName\":\"Frederic Fall MODIFIED\"}")
+.build();
+...
+</pre></code>
**Note:** The valid method values are POST, PUT, DELETE or MERGE.