Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-8306

rest-dsl - Add support for wildcards to match on prefix

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.2.0
    • camel-core, rest
    • None
    • Unknown

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              davsclaus Claus Ibsen
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: