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-examples.git
The following commit(s) were added to refs/heads/main by this push: new 720d951 CAMEL-19177: camel-platform-http - Spring Boot implementation that use directly the HTTP server 720d951 is described below commit 720d951e12314a27a5113b306b95494b519a51a1 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Tue Mar 21 18:42:58 2023 +0100 CAMEL-19177: camel-platform-http - Spring Boot implementation that use directly the HTTP server --- platform-http/README.adoc | 8 ++++---- platform-http/src/main/resources/application.properties | 3 --- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/platform-http/README.adoc b/platform-http/README.adoc index c5794b9..2d5b300 100644 --- a/platform-http/README.adoc +++ b/platform-http/README.adoc @@ -57,7 +57,7 @@ Create a TODO [source,text] ---- -$ curl -d '{"title":"Todo title", "completed":"false", "order": 1, "url":""}' -H "Content-Type: application/json" -X POST http://localhost:8080/api/todos +$ curl -d '{"title":"Todo title", "completed":"false", "order": 1, "url":""}' -H "Content-Type: application/json" -X POST http://localhost:8080/todos ---- The command will produce the following output: @@ -71,7 +71,7 @@ Retrieve all TODOs [source,text] ---- -$ curl http://localhost:8080/api/todos +$ curl http://localhost:8080/todos ---- The command will produce the following output: @@ -85,7 +85,7 @@ Update one TODO [source,text] ---- -$ curl -d '{"title":"Todo title", "completed":"true", "order": 1, "url":""}' -H "Content-Type: application/json" -X PATCH http://localhost:8080/api/todos/1 +$ curl -d '{"title":"Todo title", "completed":"true", "order": 1, "url":""}' -H "Content-Type: application/json" -X PATCH http://localhost:8080/todos/1 ---- The command will produce the following output: @@ -99,7 +99,7 @@ Delete completed TODOs [source,text] ---- -$ curl -X "DELETE" http://localhost:8080/api/todos +$ curl -X "DELETE" http://localhost:8080/todos ---- The command will produce the following output: diff --git a/platform-http/src/main/resources/application.properties b/platform-http/src/main/resources/application.properties index b05ed20..85a1297 100644 --- a/platform-http/src/main/resources/application.properties +++ b/platform-http/src/main/resources/application.properties @@ -17,6 +17,3 @@ # the name of Camel camel.springboot.name = MyCamel - -# to reconfigure the camel servlet context-path mapping to use /api/* instead of /camel/* -camel.servlet.mapping.context-path=/api/*