java-tutorials/camel-api
Sanjay Patel cddf858c05 BAEL-5246: pom cleanup (#4620)
* BAEL-5246: round 1 of pom cleanup - upto "jersey" project

* BAEL-5246: Initial pass for pom cleanup - upto spring-cloud

* BAEL-5246: pom cleanup upto testing-modules/junit5

* BAEL-5246: pom cleanup - upto xstream

* BAEL-5246: pom cleanup - last round (before review)
2018-07-12 09:04:54 +02:00
..
src/main PR for BAEL-798 - Apache Camel with Spring Boot (#2280) 2017-07-21 00:40:13 +02:00
README.md Update README.md (#2822) 2017-10-22 20:46:03 +02:00
pom.xml BAEL-5246: pom cleanup (#4620) 2018-07-12 09:04:54 +02: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: