You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by "Yang, Chao" <c....@accenture.com.INVALID> on 2021/11/17 00:46:54 UTC
How to add multiple tags on rest definition
Hi Team,
We need to add multiple tags to rest endpoints.
While the .tag() method in org.apache.camel.model.rest.RestDefinition only accepts string.
The open api spec uses an array for 'tag', such as
...
"organisations" : {
"get" : {
"tags" : [ "Business", "Company"],
"parameters" : [ {
...
Is there a solution to add multiple tags to rest definition?
Thanks,
c.c.yang@accenture.com
+61 435321568 (M)
________________________________
This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy. Your privacy is important to us. Accenture uses your personal data only in compliance with data protection laws. For further information on how Accenture processes your personal data, please see our privacy statement at https://www.accenture.com/us-en/privacy-policy.
______________________________________________________________________________________
www.accenture.com
Re: How to add multiple tags on rest definition
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
Try with comma separated value, eg foo,bar,cheese
On Wed, Nov 17, 2021 at 10:04 AM Yang, Chao
<c....@accenture.com.invalid> wrote:
>
> Hi Team,
>
> We need to add multiple tags to rest endpoints.
>
> While the .tag() method in org.apache.camel.model.rest.RestDefinition only accepts string.
>
> The open api spec uses an array for 'tag', such as
> ...
> "organisations" : {
> "get" : {
> "tags" : [ "Business", "Company"],
> "parameters" : [ {
> ...
>
> Is there a solution to add multiple tags to rest definition?
>
> Thanks,
>
> c.c.yang@accenture.com
> +61 435321568 (M)
>
>
> ________________________________
>
> This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy. Your privacy is important to us. Accenture uses your personal data only in compliance with data protection laws. For further information on how Accenture processes your personal data, please see our privacy statement at https://www.accenture.com/us-en/privacy-policy.
> ______________________________________________________________________________________
>
> www.accenture.com
--
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2