This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new e6aaf078cfa docs: correct DSL examples (#11648)
e6aaf078cfa is described below

commit e6aaf078cfae3383be1913a7b8328eb16a2991cd
Author: Claude Mamo <823038+claudem...@users.noreply.github.com>
AuthorDate: Thu Oct 5 11:01:47 2023 +0200

    docs: correct DSL examples (#11648)
---
 .../camel-dhis2-component/src/main/docs/dhis2-component.adoc        | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/components/camel-dhis2/camel-dhis2-component/src/main/docs/dhis2-component.adoc
 
b/components/camel-dhis2/camel-dhis2-component/src/main/docs/dhis2-component.adoc
index ce5f369224d..20dd4c688e8 100644
--- 
a/components/camel-dhis2/camel-dhis2-component/src/main/docs/dhis2-component.adoc
+++ 
b/components/camel-dhis2/camel-dhis2-component/src/main/docs/dhis2-component.adoc
@@ -102,7 +102,7 @@ public class MyRouteBuilder extends RouteBuilder {
         from("direct:getCollection")
             
.to("dhis2://get/collection?path=organisationUnits&arrayName=organisationUnits&username=admin&password=district&baseApiUrl=https://play.dhis2.org/2.39.1/api";)
             .split().body()
-            
.convertBody(org.hisp.dhis.api.model.v2_39_1.OrganisationUnit.class).log("${body}");
+            
.convertBodyTo(org.hisp.dhis.api.model.v2_39_1.OrganisationUnit.class).log("${body}");
     }
 }
 ----
@@ -121,7 +121,7 @@ public class MyRouteBuilder extends RouteBuilder {
         from("direct:getCollection")
             
.to("dhis2://get/collection?path=organisationUnits&fields=code&arrayName=organisationUnits&username=admin&password=district&baseApiUrl=https://play.dhis2.org/2.39.1/api";)
             .split().body()
-            
.convertBody(org.hisp.dhis.api.model.v2_39_1.OrganisationUnit.class)
+            
.convertBodyTo(org.hisp.dhis.api.model.v2_39_1.OrganisationUnit.class)
             .log("${body}");
     }
 }
@@ -141,7 +141,7 @@ public class MyRouteBuilder extends RouteBuilder {
         from("direct:getCollection")
             
.to("dhis2://get/collection?path=users&filter=phoneNumber:!null:&arrayName=users&username=admin&password=district&baseApiUrl=https://play.dhis2.org/2.39.1/api";)
             .split().body()
-            .convertBody(org.hisp.dhis.api.model.v2_39_1.User.class)
+            .convertBodyTo(org.hisp.dhis.api.model.v2_39_1.User.class)
             .log("${body}");
     }
 }

Reply via email to