Does camel support JSON API?
REST DSL snippet:
restConfiguration().component("restlet").host("localhost").port(9090).bindingMode(RestBindingMode.json);
rest("/users")
.description("User rest service")
.consumes(MediaType.APPLICATION_JSON)
.produces("application/vnd.api+json")
.get()
.description("Get user by id")
.outTypeList(User.class)
.to("......
REST DSL returns response as below,
{"id":123,"name":"Test"}
But i was looking for response in JSON API format. Is there any way I can
get response in JSON API format?
like below,
{
"data": {
"type": "users",
"id": "123",
"attributes": {
"id": "123",
"name": "Test"
"relationships": {
}
},
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-REST-DSL-JSON-API-tp5789980.html
Sent from the Camel - Users mailing list archive at Nabble.com.