-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Thing API does not support alternative way of specifying list query parameters #1644
Milestone
Comments
Thanks for reporting, @enenuki |
thjaeckle
added a commit
that referenced
this issue
Jun 12, 2023
… used, but duplicated keys * e.g.: `?fields=thingId&fields=policyId` Signed-off-by: Thomas Jäckle <thomas.jaeckle@beyonnex.io>
thjaeckle
added a commit
that referenced
this issue
Jun 13, 2023
… used, but duplicated keys * e.g.: `?fields=thingId&fields=policyId` Signed-off-by: Thomas Jäckle <thomas.jaeckle@beyonnex.io>
thjaeckle
added a commit
that referenced
this issue
Jun 22, 2023
Signed-off-by: Thomas Jäckle <thomas.jaeckle@beyonnex.io>
thjaeckle
added a commit
that referenced
this issue
Jun 22, 2023
…ry-params #1644 support query params in the style where not comma separation is used, but duplicated keys
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ditto thing API supports querying for certain parts of thing, by specifying URL like:
<BASE_URL>/api/2/things/<thingid>?fields=attributes/manufacturer,attributes/type,attributes/productkey
but if we want to use alternative format:
<BASE_URL>/api/2/things/<thingid>?fields=attributes/manufacturer&fields=attributes/type&fields=attributes/productkey
it only returns first attribute (in this case attributes/manufacturer).
While this may seem like minor issue, some libraries (jawax.ws.rs.QueryParam in JAX-RS API) use only the alternative format to serialize their requests, which makes it a bit harder to bypass.
Ditto version: 3.2.0
The text was updated successfully, but these errors were encountered: