java-tutorials/spring-boot-camel
sachin29aug 59bd1c0f34 BAEL-8939: Adding a Spring Context test in all Spring Modules (changes for around 23 more modules.. work in progress..) 2018-09-12 17:28:47 -04:00
..
src BAEL-8939: Adding a Spring Context test in all Spring Modules (changes for around 23 more modules.. work in progress..) 2018-09-12 17:28:47 -04:00
README.md BAEL-8824 Align module names, folder names and artifact id 2018-09-04 20:25:16 +05:30
pom.xml BAEL-8939: Adding a Spring Context test in all Spring Modules (changes for around 23 more modules.. work in progress..) 2018-09-12 17:28:47 -04:00

README.md

Example for the Article on Camel API with SpringBoot

to start up, run: mvn spring-boot:run

them, do a POST http request to: http://localhost:8080/camel/api/bean

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

and a BODY Payload like {"id": 1,"name": "World"}

and 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: