Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,10 @@ parameter to retrieve key-values.
This example lists selected data from two **TemperatureSensor** entities chosen by `id`. Note that every `id` must be
unique, so `type` is not required for this request. To filter by `id` add the entries in a comma delimited list.

A list of `id` values is not on its own enough to make a query. NGSI-LD requires at least one of `type`, `attrs`, `q`,
a GeoQuery or `local=true`, and raises `BadRequestData` ("too wide query") without one, `pick` does not count,
so`local=true` is used here because it satisfies the requirement without naming a `type`.

#### 1️⃣3️⃣ Request:

```console
Expand All @@ -878,6 +882,7 @@ curl -G -iX GET \
-H 'Link: <http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
-H 'Accept: application/json' \
-d 'id=urn:ngsi-ld:TemperatureSensor:001,urn:ngsi-ld:TemperatureSensor:002' \
-d 'local=true' \
-d 'pick=id,type,temperature' \
-d 'format=concise'
```
Expand Down Expand Up @@ -921,6 +926,7 @@ curl -G -iX GET \
-H 'Accept: application/geo+json' \
-H 'NGSILD-Tenant: openiot' \
-d 'id=urn:ngsi-ld:Animal:pig010,urn:ngsi-ld:Animal:pig006' \
-d 'local=true' \
-d 'format=concise'
```

Expand Down
Loading