java-tutorials/spring-boot-camel
Sam Millington 8acac28de3 [BAEL-17488] - README descriptions 4 (#7830)
* [BAEL-17488] - README descriptions 4

* [BAEL-17488] - README descriptions 4

* minor changes
2019-09-20 08:08:28 -06:00
..
src Story/bael 14304 (#7311) 2019-07-20 14:33:56 +03:00
README.md [BAEL-17488] - README descriptions 4 (#7830) 2019-09-20 08:08:28 -06:00
pom.xml BAEL-9567 Align module names, folder names and artifact id 2018-11-30 22:16:08 +05:30

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: