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:57:23 UTC

svn commit: r1584293 - /olingo/site/trunk/content/doc/tutorials/batchClientApi.mdtext

Author: chrisam
Date: Thu Apr  3 08:57:22 2014
New Revision: 1584293

URL: http://svn.apache.org/r1584293
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=1584293&r1=1584292&r2=1584293&view=diff
==============================================================================
--- olingo/site/trunk/content/doc/tutorials/batchClientApi.mdtext (original)
+++ olingo/site/trunk/content/doc/tutorials/batchClientApi.mdtext Thu Apr  3 08:57:22 2014
@@ -28,7 +28,7 @@ A BatchQueryPart is a representation of 
   - contentId(String) 
   - headers(List<String>)
 
-BatchQueryPart request = BatchQueryPart.method("GET").uri("$metadata").build();
+<pre><code>BatchQueryPart request = BatchQueryPart.method("GET").uri("$metadata").build();</pre></code>
 
 **Note:** The valid method value is GET.
 
@@ -41,15 +41,14 @@ A BatchChangeSetPart is a representation
   - contentId(String)
   - body(String)
 
-    Map<String, String> changeSetHeaders = new HashMap<String, 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();
-     ...
+    .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.
 
@@ -83,3 +82,4 @@ You receive a list of single response by
           response.getBody();
           response.getContentId();
     }
+