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 2023/03/22 13:29:56 UTC

[camel-spring-boot-examples] branch camel-3.x updated: CAMEL-19177: camel-platform-http - Spring Boot implementation that use directly the HTTP server

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch camel-3.x
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot-examples.git


The following commit(s) were added to refs/heads/camel-3.x by this push:
     new 50f4892  CAMEL-19177: camel-platform-http - Spring Boot implementation that use directly the HTTP server
50f4892 is described below

commit 50f4892d5cc8e9acf7eff698d2214aa0a88e8e37
Author: Claus Ibsen <cl...@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 e2e3a36..1be7408 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/*