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

Support for optional query parameters in REST component

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Implemented
    • Affects Version/s: 2.19.0
    • Fix Version/s: 2.19.0
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: