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 55840b82f2612d3d24b6eba530f1fe28abfd4a2c Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Tue Mar 21 18:09:59 2023 +0100 CAMEL-19177: camel-platform-http - Spring Boot implementation that use directly the HTTP server --- .../ROOT/pages/camel-3x-upgrade-guide-3_21.adoc | 18 ++++++++++++++++++ .../modules/ROOT/pages/camel-4-migration-guide.adoc | 18 ++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/docs/user-manual/modules/ROOT/pages/camel-3x-upgrade-guide-3_21.adoc b/docs/user-manual/modules/ROOT/pages/camel-3x-upgrade-guide-3_21.adoc index d340cc108b0..2985b69ddf2 100644 --- a/docs/user-manual/modules/ROOT/pages/camel-3x-upgrade-guide-3_21.adoc +++ b/docs/user-manual/modules/ROOT/pages/camel-3x-upgrade-guide-3_21.adoc @@ -117,6 +117,24 @@ The deprecated option `componentName` was removed. Please use either `producerCo The `uri` tags are now static instead of dynamic (by default), as potential too many tags generated due to URI with dynamic values. This can be enabled again by setting `camel.metrics.uriTagDynamic=true`. +=== camel-platform-http-starter + +The `platform-http-starter` has been changed from using `camel-servlet` to use Spring HTTP server directly. +Therefore, all the HTTP endpoints are no longer prefixed with the servlet context-path (default is `camel`). + +For example: + +[source,java] +---- +from("platform-http:myservice") + .to("...") +---- + +Then calling _myservice_ would before require to include the context-path, such as `http://localhost:8080/camel/myservice`. +Now the context-path is not in use, and the endpoint can be called with `http://localhost:8080/myservice`. + +NOTE: The `platform-http-starter` can also be used with Rest DSL. + === Deprecated Components The following components that had been marked as deprecated, were removed in this release: diff --git a/docs/user-manual/modules/ROOT/pages/camel-4-migration-guide.adoc b/docs/user-manual/modules/ROOT/pages/camel-4-migration-guide.adoc index 1b4a3542bab..7701041ec69 100644 --- a/docs/user-manual/modules/ROOT/pages/camel-4-migration-guide.adoc +++ b/docs/user-manual/modules/ROOT/pages/camel-4-migration-guide.adoc @@ -175,3 +175,21 @@ has been changed to generic `Message` types. The `uri` tags are now static instead of dynamic (by default), as potential too many tags generated due to URI with dynamic values. This can be enabled again by setting `camel.metrics.uriTagDynamic=true`. + +=== camel-platform-http-starter + +The `platform-http-starter` has been changed from using `camel-servlet` to use Spring HTTP server directly. +Therefore, all the HTTP endpoints are no longer prefixed with the servlet context-path (default is `camel`). + +For example: + +[source,java] +---- +from("platform-http:myservice") + .to("...") +---- + +Then calling _myservice_ would before require to include the context-path, such as `http://localhost:8080/camel/myservice`. +Now the context-path is not in use, and the endpoint can be called with `http://localhost:8080/myservice`. + +NOTE: The `platform-http-starter` can also be used with Rest DSL.