Skip to content

Commit

Permalink
Remove origin.
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-fox committed Aug 6, 2024
1 parent 64ea0ad commit 4cc2fd8
Showing 1 changed file with 36 additions and 17 deletions.
53 changes: 36 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,8 @@ actions continue to be mapped to the same HTTP verbs as before. Adding the `Acce
#### 3️⃣ Request:

```console
curl -L -X GET 'http://localhost:1026/ngsi-ld/v1/subscriptions/'
curl -L -X GET 'http://localhost:1026/ngsi-ld/v1/subscriptions/' \
-H 'Link: <http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"'
```

#### Response:
Expand All @@ -302,46 +303,64 @@ the payloads offered by the two subscriptions will be discussed below.
```json
[
{
"id": "urn:ngsi-ld:Subscription:5e62405ee232da3a07b5fa7f",
"id": "urn:ngsi-ld:subscription:6388b9a6-4a82-11ef-b848-0242ac120105",
"type": "Subscription",
"description": "Notify me of low stock in Store 001",
"entities": [
{
"type": "Shelf"
}
],
"watchedAttributes": ["numberOfItems"],
"q": "https://fiware.github.io/tutorials.Step-by-Step/schema/numberOfItems<10;https://fiware.github.io/tutorials.Step-by-Step/schema/locatedIn==%22urn:ngsi-ld:Building:store001%22",
"watchedAttributes": [
"numberOfItems"
],
"q": "numberOfItems<10;locatedIn==%22urn:ngsi-ld:Building:store001%22",
"status": "active",
"isActive": true,
"notification": {
"attributes": ["numberOfItems", "stocks", "locatedIn"],
"attributes": [
"numberOfItems",
"stocks",
"locatedIn"
],
"format": "keyValues",
"endpoint": {
"uri": "http://tutorial:3000/subscription/low-stock-store001",
"accept": "application/json"
}
},
"status": "ok"
},
"@context": "http://context/user-context.jsonld"
"jsonldContext": "http://context/user-context.jsonld"
},
{
"id": "urn:ngsi-ld:Subscription:5e624063e232da3a07b5fa80",
"id": "urn:ngsi-ld:subscription:68fa2d2a-4a82-11ef-828d-0242ac120105",
"type": "Subscription",
"description": "Notify me of low stock in Store 002",
"description": "LD Notify me of low stock in Store 002",
"entities": [
{
"type": "Shelf"
}
],
"watchedAttributes": ["numberOfItems"],
"q": "https://fiware.github.io/tutorials.Step-by-Step/schema/numberOfItems<10;https://fiware.github.io/tutorials.Step-by-Step/schema/locatedIn==%22urn:ngsi-ld:Building:store002%22",
"watchedAttributes": [
"numberOfItems"
],
"q": "numberOfItems<10;locatedIn==%22urn:ngsi-ld:Building:store002%22",
"status": "active",
"isActive": true,
"notification": {
"attributes": ["numberOfItems", "stocks", "locatedIn"],
"format": "keyValues",
"attributes": [
"numberOfItems",
"stocks",
"locatedIn"
],
"format": "normalized",
"endpoint": {
"uri": "http://tutorial:3000/subscription/low-stock-store002",
"accept": "application/json"
}
"accept": "application/ld+json"
},
"status": "ok"
},
"@context": "http://context/user-context.jsonld"
"jsonldContext": "https://fiware.github.io/tutorials.Step-by-Step/tutorials-context.jsonld"
}
]
```
Expand Down Expand Up @@ -578,7 +597,7 @@ returned, along with the `@context`.
"type": "Building"
}
],
"properties": ["tweets"]
"properties": "tweets"
}
],
"contextSourceInfo": [
Expand Down

0 comments on commit 4cc2fd8

Please sign in to comment.