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

Support for optional query parameters in REST component

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Implemented
    • 2.19.0
    • 2.19.0
    • camel-core
    • None
    • Unknown

    Description

      I would like to add support for optional query parameters in REST component. These optional parameters would not be added to the dispatched HTTP request unless present in the message headers. Currently if not present they would be passed as param={header_name}.
      I propose adding ? to the header_name to signify that this parameter is optional, i.e. in endpoint URL param={header_name?}.

      Attachments

        Issue Links

          Activity

            People

              zregvart Zoran Regvart
              zregvart Zoran Regvart
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: