java-tutorials/spring-boot-modules/spring-boot-camel
Asjad J b54aa0d423 Updated README.md
added link back to the article: https://www.baeldung.com/spring-apache-camel-conditional-routing
2022-09-02 09:03:18 +05:00
..
src BAEL-5237 - Apache Camel Conditional Routing (#12675) 2022-08-31 07:39:29 -07:00
.gitignore BAEL-5234 - Apache Camel Routes Testing in Spring Boot (#11925) 2022-03-14 15:35:32 -07:00
README.md Updated README.md 2022-09-02 09:03:18 +05:00
pom.xml BAEL-5234 - Apache Camel Routes Testing in Spring Boot (#11925) 2022-03-14 15:35:32 -07:00

README.md

Spring Boot Camel

This module contains articles about Spring Boot with Apache Camel

Example for the Article on Camel API with SpringBoot

To start, run:

mvn spring-boot:run

Then, make a POST http request to:

http://localhost:8080/camel/api/bean

Include the HEADER: Content-Type: application/json,

and a BODY Payload like:

{"id": 1,"name": "World"}

We will get a return code of 201 and the response: Hello, World - if the transform() method from Application class is uncommented and the process() method is commented

or return code of 201 and the response: {"id": 10,"name": "Hello, World"} - if the transform() method from Application class is commented and the process() method is uncommented

Relevant articles: