Optional Query parameter in REST Method

Optional Query parameter in REST Method

  
One of a Query parameter in my REST API Method is optional, how do i prevent that it is sent in the URL?
For example the URL can be

http://host.com/method?par1=1&par2=2&par3=3

and

http://host.com/method?par1=1&par3=3

when par2 is empty, the parameter must not be sent.


Solution
Matthias Preuter wrote:
For example the URL can be

http://host.com/method?par1=1&par2=2&par3=3

and

http://host.com/method?par1=1&par3=3

when par2 is empty, the parameter must not be sent.

 
 
 Already found it, 
  • Set mandatory: false
And Advanced properties:
  • Default value: empty 
  • Send default value: No

Solution