[doc] clarified optional parameter code

Paramaters can be sent in as a querystring or an object