You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2022/11/07 08:42:08 UTC

[GitHub] [camel] essobedo commented on a diff in pull request #8676: CAMEL-18694 - Fix documentation to use new path attribute instead of uri

essobedo commented on code in PR #8676:
URL: https://github.com/apache/camel/pull/8676#discussion_r1015138608


##########
docs/user-manual/modules/ROOT/pages/rest-dsl.adoc:
##########
@@ -141,13 +141,12 @@ only. The example above can be defined as:
 [source,xml]
 ----
 <rest>
-  <get uri="/customers/{id}">
+  <get path="/customers/{id}">
     <to uri="direct:customerDetail"/>
   </get>
-  <get uri="/customers/{id}/orders">
+  <get path="/customers/{id}/orders">
     <to uri="direct:customerOrders"/>
-  </get>
-  <post uri="/customers/neworder">
+  </get>post path=uri="/customers/neworder">

Review Comment:
   Seems to be a typo here



##########
docs/user-manual/modules/ROOT/pages/rest-dsl.adoc:
##########
@@ -214,13 +213,12 @@ And in XML:
 <restConfiguration inlineRoutes="true"/>
 
 <rest>
-  <get uri="/customers/{id}">
+  <get path="/customers/{id}">
     <to uri="direct:customerDetail"/>
   </get>
-  <get uri="/customers/{id}/orders">
+  <get path="/customers/{id}/orders">
     <to uri="direct:customerOrders"/>
-  </get>
-  <post uri="/customers/neworder">
+  </gepost path=t uri="/customers/neworder">

Review Comment:
   Seems to be a typo here



##########
docs/user-manual/modules/ROOT/pages/rest-dsl.adoc:
##########
@@ -117,13 +117,13 @@ And using XML DSL it becomes:
 [source,xml]
 ----
 <rest path="/customers/">
-  <get uri="/{id}">
+  <get path="/{id}">
     <to uri="direct:customerDetail"/>
   </get>
-  <get uri="/{id}/orders">
+  <get path="/{id}/orders">
     <to uri="direct:customerOrders"/>
   </get>
-  <post uri="/neworder">
+ post path=i="/neworder">

Review Comment:
   Seems to be a typo here



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org