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 2015/03/23 17:38:12 UTC

[jira] [Commented] (CAMEL-8306) rest-dsl - Add support for wildcards to match on prefix

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

Claus Ibsen commented on CAMEL-8306:
------------------------------------

We may need to introduce a intermediate route layer in camel rest-dsl so we can have match by wildcard and the likes coded in one place, and support on all http transports. Then we can better control the matching, such as the issue with restlet that has a bug - another ticket logged about that.

> rest-dsl - Add support for wildcards to match on prefix
> -------------------------------------------------------
>
>                 Key: CAMEL-8306
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8306
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Claus Ibsen
>             Fix For: 2.16.0
>
>
> See SO
> http://stackoverflow.com/questions/28264748/regex-on-camel-rest-component
> eg if we add support for using * as a wildcard then people can do rest paths with * as suffix, to indicate that it should match by wildcard
> eg
>  rest("/api/user/*") 
> To match
> - /api/user
> - /api/user/foo
> -/api/user/foo/bar
> As * requires support from the underlying component, but most of them support that too, eg servlet / jetty / netty-http etc so likely we should be able to do this



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