You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2022/02/18 10:50:39 UTC

[camel] 05/07: CAMEL-17673: camel-core-model - Cleanup Rest DSL

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 caf2f4a0975b65e8f86241afe2222b77f9266077
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Fri Feb 18 10:48:41 2022 +0100

    CAMEL-17673: camel-core-model - Cleanup Rest DSL
---
 .../src/main/java/org/apache/camel/model/rest/VerbDefinition.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/camel-core-model/src/main/java/org/apache/camel/model/rest/VerbDefinition.java b/core/camel-core-model/src/main/java/org/apache/camel/model/rest/VerbDefinition.java
index fcf1116..a4f67ad 100644
--- a/core/camel-core-model/src/main/java/org/apache/camel/model/rest/VerbDefinition.java
+++ b/core/camel-core-model/src/main/java/org/apache/camel/model/rest/VerbDefinition.java
@@ -191,7 +191,7 @@ public abstract class VerbDefinition extends OptionalIdentifiedDefinition<VerbDe
     }
 
     public String getPath() {
-        return path;
+        return path != null ? path : uri;
     }
 
     /**