You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@olingo.apache.org by bu...@apache.org on 2014/04/03 10:57:27 UTC

svn commit: r904757 - in /websites/staging/olingo/trunk/content: ./ doc/tutorials/batchClientApi.html

Author: buildbot
Date: Thu Apr  3 08:57:27 2014
New Revision: 904757

Log:
Staging update by buildbot for olingo

Modified:
    websites/staging/olingo/trunk/content/   (props changed)
    websites/staging/olingo/trunk/content/doc/tutorials/batchClientApi.html

Propchange: websites/staging/olingo/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Thu Apr  3 08:57:27 2014
@@ -1 +1 @@
-1584289
+1584293

Modified: websites/staging/olingo/trunk/content/doc/tutorials/batchClientApi.html
==============================================================================
--- websites/staging/olingo/trunk/content/doc/tutorials/batchClientApi.html (original)
+++ websites/staging/olingo/trunk/content/doc/tutorials/batchClientApi.html Thu Apr  3 08:57:27 2014
@@ -82,7 +82,9 @@
 <li>contentId(String) </li>
 <li>headers(List<String>)</li>
 </ul>
-<p>BatchQueryPart request = BatchQueryPart.method("GET").uri("$metadata").build();</p>
+<pre><code>BatchQueryPart request = BatchQueryPart.method("GET").uri("$metadata").build();</pre>
+
+<p></code></p>
 <p><strong>Note:</strong> The valid method value is GET.</p>
 <p><strong>ChangeSet construction</strong>
 A BatchChangeSetPart is a representation of a single change request. You can use the following methods in order to fill out a change request:</p>
@@ -93,14 +95,14 @@ A BatchChangeSetPart is a representation
 <li>contentId(String)</li>
 <li>
 <p>body(String)</p>
-<p>Map<String, String> changeSetHeaders = new HashMap<String, String>();
-changeSetHeaders.put("content-type", "application/json;odata=verbose");</p>
-<p>BatchChangeSetPart changeRequest = BatchChangeSetPart.method("PUT")
-        .uri("Employees('2')/EmployeeName")
-        .headers(changeSetHeaders)
-        .body("{\"EmployeeName\":\"Frederic Fall MODIFIED\"}")
-    .build();
- ...</p>
+<p><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></p>
 </li>
 </ul>
 <p><strong>Note:</strong> The valid method values are POST, PUT, DELETE or MERGE.</p>