olingo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ram...@apache.org
Subject svn commit: r1860193 - /olingo/site/trunk/content/doc/odata4/tutorials/od4_basic_client_read.mdtext
Date Tue, 28 May 2019 08:07:11 GMT
Author: ramyav
Date: Tue May 28 08:07:11 2019
New Revision: 1860193

URL: http://svn.apache.org/viewvc?rev=1860193&view=rev
Log:
Remove comments

Modified:
    olingo/site/trunk/content/doc/odata4/tutorials/od4_basic_client_read.mdtext

Modified: olingo/site/trunk/content/doc/odata4/tutorials/od4_basic_client_read.mdtext
URL: http://svn.apache.org/viewvc/olingo/site/trunk/content/doc/odata4/tutorials/od4_basic_client_read.mdtext?rev=1860193&r1=1860192&r2=1860193&view=diff
==============================================================================
--- olingo/site/trunk/content/doc/odata4/tutorials/od4_basic_client_read.mdtext (original)
+++ olingo/site/trunk/content/doc/odata4/tutorials/od4_basic_client_read.mdtext Tue May 28
08:07:11 2019
@@ -508,8 +508,7 @@ So the code for delete of an entry the
         System.out.println("URI = " + absoluteUri);
         ODataEntitySetIteratorRequest<ClientEntitySet, ClientEntity> request = 
           client.getRetrieveRequestFactory().getEntitySetIteratorRequest(absoluteUri);
-        // odata4 sample/server limitation not handling metadata=full
-        request.setAccept("application/json;odata.metadata=minimal");
+        request.setAccept("application/json");
         ODataRetrieveResponse<ClientEntitySetIterator<ClientEntitySet, ClientEntity>>
response = request.execute(); 
           
         return response.getBody();
@@ -530,8 +529,7 @@ So the code for delete of an entry the
     
       private ClientEntity readEntity(Edm edm, URI absoluteUri) {
         ODataEntityRequest<ClientEntity> request = client.getRetrieveRequestFactory().getEntityRequest(absoluteUri);
-        // odata4 sample/server limitation not handling metadata=full
-        request.setAccept("application/json;odata.metadata=minimal");
+        request.setAccept("application/json;odata.metadata=full");
         ODataRetrieveResponse<ClientEntity> response = request.execute(); 
           
         return response.getBody();
@@ -550,8 +548,7 @@ So the code for delete of an entry the
       private ClientEntity createEntity(Edm edm, URI absoluteUri, ClientEntity ce) {
         ODataEntityCreateRequest<ClientEntity> request = client.getCUDRequestFactory()
           .getEntityCreateRequest(absoluteUri, ce);
-        // odata4 sample/server limitation not handling metadata=full
-        request.setAccept("application/json;odata.metadata=minimal");
+        request.setAccept("application/json");
         ODataEntityCreateResponse<ClientEntity> response = request.execute(); 
           
         return response.getBody();
@@ -562,7 +559,6 @@ So the code for delete of an entry the
           .appendKeySegment(keyValue).build();
         ODataEntityUpdateRequest<ClientEntity> request = 
           client.getCUDRequestFactory().getEntityUpdateRequest(absoluteUri, UpdateType.PATCH,
ce);
-        // odata4 sample/server limitation not handling metadata=full
         request.setAccept("application/json;odata.metadata=minimal");
         ODataEntityUpdateResponse<ClientEntity> response = request.execute();
         return response.getStatusCode();
@@ -572,7 +568,6 @@ So the code for delete of an entry the
         URI absoluteUri = client.newURIBuilder(serviceUri).appendEntitySetSegment(entityName)
           .appendKeySegment(keyValue).build();
         ODataDeleteRequest request = client.getCUDRequestFactory().getDeleteRequest(absoluteUri);
-        // odata4 sample/server limitation not handling metadata=full
         request.setAccept("application/json;odata.metadata=minimal");
         ODataDeleteResponse response = request.execute();
         return response.getStatusCode();



Mime
View raw message