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

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

commit c439102d1b9e35003d328172287aeaf0ed41bc63
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Fri Feb 18 13:01:00 2022 +0100

    CAMEL-17673: camel-core-model - Cleanup Rest DSL
---
 .../ROOT/pages/camel-3x-upgrade-guide-3_16.adoc    | 43 ++++++++++++++++++++++
 1 file changed, 43 insertions(+)

diff --git 
a/docs/user-manual/modules/ROOT/pages/camel-3x-upgrade-guide-3_16.adoc 
b/docs/user-manual/modules/ROOT/pages/camel-3x-upgrade-guide-3_16.adoc
index a0e91cc..5b6676f 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-3x-upgrade-guide-3_16.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-3x-upgrade-guide-3_16.adoc
@@ -30,6 +30,49 @@ Renamed the following classes in package 
`org.apache.camel.model.rest`:
 - `PostVerbDefinition` to `PostDefinition`
 - `PutVerbDefinition` to `PutDefinition`
 
+Rename `uri` to `path` on the verb classes listed above.
+When using XML or YAML DSL then migration is needed such as:
+
+[source,xml]
+----
+<rest>
+  <get uri="/hello/{name}">
+    ...
+  </get>
+</rest>
+----
+
+Should be:
+
+[source,xml]
+----
+<rest>
+  <get path="/hello/{name}">
+    ...
+  </get>
+</rest>
+----
+
+And in YAML DSL:
+
+[source,yaml]
+----
+rest:
+  get:
+    - uri: "/hello/{name}"
+      to: "direct:hello"
+----
+
+Should be:
+
+[source,yaml]
+----
+rest:
+  get:
+    - path: "/hello/{name}"
+      to: "direct:hello"
+----
+
 ==== Saga EIP
 
 Removed the deprecated `timeoutInMilliseconds` option, use `timeout` instead.

Reply via email to