Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

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

Open
wilkohein opened this issue Jan 16, 2017 · 0 comments
Open

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

wilkohein opened this issue Jan 16, 2017 · 0 comments

Comments

@wilkohein
Copy link

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.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant