camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-8306) rest-dsl - Add support for wildcards to match on prefix
Date Fri, 07 Apr 2017 11:04:41 GMT

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

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

Not as sure if this is so good, are uri templates in spring-boot etc support wildcards like
this?

[~zregvart] you have been in rest land recently, and thoughts? 

> 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, rest
>            Reporter: Claus Ibsen
>             Fix For: Future
>
>
> 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.15#6346)

Mime
View raw message