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 <[email protected]> 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; } /**
