Daniel Cassiani 292d9f802f PR for BAEL-798 - Apache Camel with Spring Boot (#2280)
* initial import

* simplified to rest only

* simplifications

* update

* Create ExampleServices.java

* Update Application.java

* simple readme

* strip of dependency management

* setting Camel versions apart where affected

* Update README.md

* update comments

* Update pom.xml

* delete of fabri8 deployment.yml

* remove extends
2017-07-21 00:40:13 +02:00
..

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