You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Zoran Regvart (JIRA)" <ji...@apache.org> on 2017/03/22 21:47:41 UTC

[jira] [Resolved] (CAMEL-11050) Support for optional query parameters in REST component

     [ https://issues.apache.org/jira/browse/CAMEL-11050?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Zoran Regvart resolved CAMEL-11050.
-----------------------------------
    Resolution: Implemented

> Support for optional query parameters in REST component
> -------------------------------------------------------
>
>                 Key: CAMEL-11050
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11050
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.19.0
>            Reporter: Zoran Regvart
>            Assignee: Zoran Regvart
>            Priority: Minor
>
> 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=&#123;header_name&#125;}}.
> I propose adding {{?}} to the {{header_name}} to signify that this parameter is optional, i.e. in endpoint URL {{param=&#123;header_name?&#125;}}.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)