java-tutorials/spring-boot-modules/spring-boot-camel
johnA1331 6e2b15f5d7 Update README.md 2022-03-24 00:06:02 +08:00
..
src BAEL-5234 - Apache Camel Routes Testing in Spring Boot (#11925) 2022-03-14 15:35:32 -07:00
.gitignore BAEL-5234 - Apache Camel Routes Testing in Spring Boot (#11925) 2022-03-14 15:35:32 -07:00
README.md Update README.md 2022-03-24 00:06:02 +08: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: