You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by nf...@apache.org on 2023/10/20 08:56:33 UTC

[camel] branch main updated: Added route naming example for YAML (#11781)

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

nfilotto 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 edbe483784f Added route naming example for YAML (#11781)
edbe483784f is described below

commit edbe483784f841cd3f14568572b4829c0e0cbb2f
Author: ssalewski <14...@users.noreply.github.com>
AuthorDate: Fri Oct 20 10:56:28 2023 +0200

    Added route naming example for YAML (#11781)
---
 .../modules/faq/pages/how-do-i-name-my-routes.adoc          | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/docs/user-manual/modules/faq/pages/how-do-i-name-my-routes.adoc b/docs/user-manual/modules/faq/pages/how-do-i-name-my-routes.adoc
index 95a089be5fc..855d18aa079 100644
--- a/docs/user-manual/modules/faq/pages/how-do-i-name-my-routes.adoc
+++ b/docs/user-manual/modules/faq/pages/how-do-i-name-my-routes.adoc
@@ -17,3 +17,16 @@ And in Spring XML using the `id` attribute:
     <to uri="mock:bar"/>
 </route>
 ----
+
+Same example for YAML using the `id` attribute:
+
+[source,yaml]
+----
+- route:
+    id: myRoute
+    from:
+        uri: direct:start
+        steps:        
+        - to:
+            uri: mock:bar
+----