Remove documentation references to REST DSL inline routes

Fixes #3995
diff --git a/docs/modules/ROOT/pages/reference/extensions/rest.adoc b/docs/modules/ROOT/pages/reference/extensions/rest.adoc
index a84a98a..5622dfd 100644
--- a/docs/modules/ROOT/pages/reference/extensions/rest.adoc
+++ b/docs/modules/ROOT/pages/reference/extensions/rest.adoc
@@ -62,15 +62,14 @@
         rest("/api")
             // Dash '-' is not allowed by default
             .get("/dashed/param/{my-param}")
-            .route()
-                .setBody(constant("Hello World"))
-            .endRest()
+            .to("direct:greet")
 
             // The non-dashed path parameter works by default
             .get("/undashed/param/{myParam}")
-            .route()
-                .setBody(constant("Hello World"))
-            .endRest();
+            .to("direct:greet");
+
+            from("direct:greet")
+                .setBody(constant("Hello World"));
     }
 }
 ----
diff --git a/extensions/rest/runtime/src/main/doc/configuration.adoc b/extensions/rest/runtime/src/main/doc/configuration.adoc
index ca2db25..9db8897 100644
--- a/extensions/rest/runtime/src/main/doc/configuration.adoc
+++ b/extensions/rest/runtime/src/main/doc/configuration.adoc
@@ -18,15 +18,14 @@
         rest("/api")
             // Dash '-' is not allowed by default
             .get("/dashed/param/{my-param}")
-            .route()
-                .setBody(constant("Hello World"))
-            .endRest()
+            .to("direct:greet")
 
             // The non-dashed path parameter works by default
             .get("/undashed/param/{myParam}")
-            .route()
-                .setBody(constant("Hello World"))
-            .endRest();
+            .to("direct:greet");
+
+            from("direct:greet")
+                .setBody(constant("Hello World"));
     }
 }
 ----