wso2esb - WSO2 ESB Uri-template how to add optional query parameter -
i'm trying add optional query parameter api uri-template.
http://myapi.com/v1/staff/{department}?filter=nerds
so in case resource should possible called w/wo parameter
http://myapi.com/v1/staff/it or http://myapi.com/v1/staff/it?filter=nerds
my current uri-template
/staff/{department}*
this works parameters. calling resource without parameters no match. addition wildcard i've tried use optional query params defined in rfc 6570 http://tools.ietf.org/html/rfc6570#section-3.2.8 can't save api uri /staff/{department}{?filter}
should work ?
thanks help, kari
one option, can define 2 resource blocks different uri_template pattern
Comments
Post a Comment