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

Rest DSL - Allow templating path parameters

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0.0-M1
    • 3.0.0.RC1, 3.0.0
    • camel-core, rest
    • None
    • Moderate

    Description

      The following route configuration should accept the "content-type" parameter as one would expect for URLs like "items/1/details.xml":

      rest("items/")
          .get("{id}/details.{content-type}")

      Currently, "content-type" is not recognized as a parameter.

       

      Maybe other separators, e.g. dash "-", should be supported as well.

      Attachments

        Issue Links

          Activity

            People

              DenisIstomin Denis Istomin
              atreffer Arian Treffer
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m