java-tutorials/spring-boot-camel
amit2103 cbf0e6f6f1 [BAEL-19420] - Removed the duplicate SpringContextIntegrationTest and spring-context profile 2019-11-20 11:11:07 +05:30
..
src [BAEL-19420] - Removed the duplicate SpringContextIntegrationTest and spring-context profile 2019-11-20 11:11:07 +05:30
README.md Merge pull request #8125 from eugenp/revert-8119-BAEL-3275-2 2019-10-31 20:43:47 -05:00
pom.xml Merge pull request #8125 from eugenp/revert-8119-BAEL-3275-2 2019-10-31 20:43:47 -05: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: