java-tutorials/camel-api
juan 511c32f3b0 Update yasson version 2017-11-17 21:24:47 -03:00
..
src/main Update yasson version 2017-11-17 21:24:47 -03:00
README.md Update yasson version 2017-11-17 21:24:47 -03:00
pom.xml Update yasson version 2017-11-17 21:24:47 -03: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: