mulesoft-labs / raml-client-generator

Template-driven generator of clients for APIs described by a RAML spec
Other
121 stars 27 forks source link

query parameters on PUT, POST #20

Closed mjasinski5 closed 9 years ago

mjasinski5 commented 9 years ago

Hello folks!

First things first, you did really great job there. App is amazing and well built.. but only one thing bothers me... : Im afraid support for POST, PUT query parameters is missing.. Do you have any plans to add this functionality? Its kind of important feature as every complex API has such needs ;)

Cheers, Mariusz

blakeembrey commented 9 years ago

@mjasinski5 Query parameters should be working, but they are passed as the second argument for non-GET requests. For example, post(null, { query: { foo: 'bar' } }). Please let me know if that doesn't work for you :smile:

mjasinski5 commented 9 years ago

Yea it works! Great :) Thanks for help, you saved my time, I wanted to write it on my own^^

blakeembrey commented 9 years ago

Great! I'm going to close the issue, but let me know if you have any other issues. Did the documentation (README) not get generated with help for query?

mjasinski5 commented 9 years ago

Yea it was the problem :( Im using apinoteebook and there wasn't any information about that + I searched also at official documentation and there was only information about query parameters for GET.