raml-javascript-generator
raml-javascript-generator copied to clipboard
URL parameters do not use "string" but "object" notation
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.