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-spring-boot.git

commit b1ca5e44fb2186e97f0cd9fa5ff3a3849313c8b1
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Fri Sep 23 17:19:25 2022 +0200

    CAMEL-18057: rest-dsl - Combine rest and linked route together as single 
route
---
 .../camel-core-starter/src/main/docs/core.json          |  7 +++++++
 .../RestConfigurationDefinitionProperties.java          | 17 +++++++++++++++++
 2 files changed, 24 insertions(+)

diff --git a/components-starter/camel-core-starter/src/main/docs/core.json 
b/components-starter/camel-core-starter/src/main/docs/core.json
index 9e448f027c1..d713fb90407 100644
--- a/components-starter/camel-core-starter/src/main/docs/core.json
+++ b/components-starter/camel-core-starter/src/main/docs/core.json
@@ -711,6 +711,13 @@
       "description": "If no hostname has been explicit configured, then this 
resolver is used to compute the hostname the REST service will be using.",
       "sourceType": 
"org.apache.camel.model.rest.springboot.RestConfigurationDefinitionProperties"
     },
+    {
+      "name": "camel.rest.inline-routes",
+      "type": "java.lang.Boolean",
+      "description": "Inline routes in rest-dsl which are linked using direct 
endpoints. By default, each service in Rest DSL is an individual route, meaning 
that you would have at least two routes per service (rest-dsl, and the route 
linked from rest-dsl). Enabling this allows Camel to optimize and inline this 
as a single route, however this requires to use direct endpoints, which must be 
unique per service. This option is default false.",
+      "sourceType": 
"org.apache.camel.model.rest.springboot.RestConfigurationDefinitionProperties",
+      "defaultValue": false
+    },
     {
       "name": "camel.rest.json-data-format",
       "type": "java.lang.String",
diff --git 
a/components-starter/camel-core-starter/src/main/java/org/apache/camel/model/rest/springboot/RestConfigurationDefinitionProperties.java
 
b/components-starter/camel-core-starter/src/main/java/org/apache/camel/model/rest/springboot/RestConfigurationDefinitionProperties.java
index fba7fea636c..30ad14d31c8 100644
--- 
a/components-starter/camel-core-starter/src/main/java/org/apache/camel/model/rest/springboot/RestConfigurationDefinitionProperties.java
+++ 
b/components-starter/camel-core-starter/src/main/java/org/apache/camel/model/rest/springboot/RestConfigurationDefinitionProperties.java
@@ -145,6 +145,15 @@ public class RestConfigurationDefinitionProperties {
      * false.
      */
     private Boolean enableCors = false;
+    /**
+     * Inline routes in rest-dsl which are linked using direct endpoints. By
+     * default, each service in Rest DSL is an individual route, meaning that
+     * you would have at least two routes per service (rest-dsl, and the route
+     * linked from rest-dsl). Enabling this allows Camel to optimize and inline
+     * this as a single route, however this requires to use direct endpoints,
+     * which must be unique per service. This option is default false.
+     */
+    private Boolean inlineRoutes = false;
     /**
      * Name of specific json data format to use. By default jackson will be
      * used. Important: This option is only for setting a custom name of the
@@ -328,6 +337,14 @@ public class RestConfigurationDefinitionProperties {
         this.enableCors = enableCors;
     }
 
+    public Boolean getInlineRoutes() {
+        return inlineRoutes;
+    }
+
+    public void setInlineRoutes(Boolean inlineRoutes) {
+        this.inlineRoutes = inlineRoutes;
+    }
+
     public String getJsonDataFormat() {
         return jsonDataFormat;
     }

Reply via email to