raml-javascript-generator icon indicating copy to clipboard operation
raml-javascript-generator copied to clipboard

URL parameters do not use "string" but "object" notation

Open wilkohein opened this issue 8 years ago • 0 comments

Function call for REST URL like "/foo/{foo}" are documented as "client.foo({foo})" - which I would interpret as String value for the parameter.

Implementation shows a wrapper object is assumed: client.foo({foo : "value"}) to add the value to URL (via "template" function).

2 Options:

  • Improve readme.MD and stick to object - though I believe this is not common-sense as URLs only support plain text strings
  • Do not use "template" but directly use provided value.

wilkohein avatar Jan 16 '17 12:01 wilkohein