You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2016/08/26 11:26:20 UTC

[jira] [Commented] (CAMEL-10164) camel-swagger to component

    [ https://issues.apache.org/jira/browse/CAMEL-10164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15438817#comment-15438817 ] 

Claus Ibsen commented on CAMEL-10164:
-------------------------------------

Have improved the rest-dsl to allow producer side also, so you can do .to("rest:foo/{bar}") and call a rest service from Camel.

Its not baked into the rest-dsl which is for hosting REST services in Camel. But it has a nice facade by just using rest endpoint and the actual http component you can chose among the many of them.

You can then also attach an swagger api-doc to the rest and it will use camel-swagger-java to parse the api doc and validate that the rest uri is valid and that the exchange content is valid also to get validation out of the box baked in.

 

> camel-swagger to component
> --------------------------
>
>                 Key: CAMEL-10164
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10164
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-swagger
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.18.0
>
>
> The idea is to allow to call a rest endpoint where you specify the swagger api the service is based upon. Then in the endpoint you select the verb/path to call. Then because of the swagger api we are able to validate and know if the payload is validate before calling the service.
> This can be a facade for the actual http component that does the call. So in other words its like the *to* for the rest-dsl.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)