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
The following commit(s) were added to refs/heads/main by this push:
new 1bece4c739e7 CAMEL-23115 Keep base.path it present. Otherwise use
context path.
1bece4c739e7 is described below
commit 1bece4c739e7704bcfe0253a2591f58eb4561ae1
Author: Claus Ibsen <[email protected]>
AuthorDate: Tue Mar 3 11:59:18 2026 +0100
CAMEL-23115 Keep base.path it present. Otherwise use context path.
---
.../ROOT/pages/camel-4x-upgrade-guide-4_18.adoc | 37 ++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git
a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_18.adoc
b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_18.adoc
index 976e3747ebc4..ab637d274e25 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_18.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_18.adoc
@@ -178,6 +178,43 @@ the bean which is similar to what `camel-file` do as well.
The `camel-json-patch` is now deprecated - the library it uses is not active
maintained and this module does not work with Jackon 3.
+=== camel-openapi-java
+
+When using _code first_ Rest DSL and have configured `base.path` then this
will now be exclusively used
+for the returned server url in the API specification.
+
+For example here we set `base.path=cheese`:
+
+[source,java]
+----
+restConfiguration().component("jetty").host("localhost").port(getPort())
+ .contextPath("myapp")
+ .apiContextPath("/api-doc")
+ .apiProperty("cors", "true").apiProperty("base.path", "cheese")
+ .apiProperty("api.title", "The hello rest
thing").apiProperty("api.version", "1.2.3");
+----
+
+Then the generated API specification now returns:
+
+[source,json]
+----
+ "servers" : [ {
+ "url" : "http://localhost:58678/cheese"
+ } ],
+----
+
+Previously the context-path would always be used:
+
+[source,json]
+----
+ "servers" : [ {
+ "url" : "http://localhost:58678/myapp"
+ } ],
+----
+
+The intention is to allow to configure the `base.path` _as is_ in the return
API specification.
+
+
== Upgrading Camel 4.17 to 4.18
=== camel-simple