@@ -290,7 +290,8 @@ actions continue to be mapped to the same HTTP verbs as before. Adding the `Acce
290290#### 3️⃣ Request:
291291
292292``` console
293- curl -L -X GET 'http://localhost:1026/ngsi-ld/v1/subscriptions/'
293+ curl -L -X GET 'http://localhost:1026/ngsi-ld/v1/subscriptions/' \
294+ -H 'Link: <http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"'
294295```
295296
296297#### Response:
@@ -302,46 +303,64 @@ the payloads offered by the two subscriptions will be discussed below.
302303``` json
303304[
304305 {
305- "id" : " urn:ngsi-ld:Subscription:5e62405ee232da3a07b5fa7f " ,
306+ "id" : " urn:ngsi-ld:subscription:6388b9a6-4a82-11ef-b848-0242ac120105 " ,
306307 "type" : " Subscription" ,
307308 "description" : " Notify me of low stock in Store 001" ,
308309 "entities" : [
309310 {
310311 "type" : " Shelf"
311312 }
312313 ],
313- "watchedAttributes" : [" numberOfItems" ],
314- "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" ,
314+ "watchedAttributes" : [
315+ " numberOfItems"
316+ ],
317+ "q" : " numberOfItems<10;locatedIn==%22urn:ngsi-ld:Building:store001%22" ,
318+ "status" : " active" ,
319+ "isActive" : true ,
315320 "notification" : {
316- "attributes" : [" numberOfItems" , " stocks" , " locatedIn" ],
321+ "attributes" : [
322+ " numberOfItems" ,
323+ " stocks" ,
324+ " locatedIn"
325+ ],
317326 "format" : " keyValues" ,
318327 "endpoint" : {
319328 "uri" : " http://tutorial:3000/subscription/low-stock-store001" ,
320329 "accept" : " application/json"
321- }
330+ },
331+ "status" : " ok"
322332 },
323- "@context " : " http://context/user-context.jsonld"
333+ "jsonldContext " : " http://context/user-context.jsonld"
324334 },
325335 {
326- "id" : " urn:ngsi-ld:Subscription:5e624063e232da3a07b5fa80 " ,
336+ "id" : " urn:ngsi-ld:subscription:68fa2d2a-4a82-11ef-828d-0242ac120105 " ,
327337 "type" : " Subscription" ,
328- "description" : " Notify me of low stock in Store 002" ,
338+ "description" : " LD Notify me of low stock in Store 002" ,
329339 "entities" : [
330340 {
331341 "type" : " Shelf"
332342 }
333343 ],
334- "watchedAttributes" : [" numberOfItems" ],
335- "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" ,
344+ "watchedAttributes" : [
345+ " numberOfItems"
346+ ],
347+ "q" : " numberOfItems<10;locatedIn==%22urn:ngsi-ld:Building:store002%22" ,
348+ "status" : " active" ,
349+ "isActive" : true ,
336350 "notification" : {
337- "attributes" : [" numberOfItems" , " stocks" , " locatedIn" ],
338- "format" : " keyValues" ,
351+ "attributes" : [
352+ " numberOfItems" ,
353+ " stocks" ,
354+ " locatedIn"
355+ ],
356+ "format" : " normalized" ,
339357 "endpoint" : {
340358 "uri" : " http://tutorial:3000/subscription/low-stock-store002" ,
341- "accept" : " application/json"
342- }
359+ "accept" : " application/ld+json"
360+ },
361+ "status" : " ok"
343362 },
344- "@context " : " http ://context/user -context.jsonld"
363+ "jsonldContext " : " https ://fiware.github.io/tutorials.Step-by-Step/tutorials -context.jsonld"
345364 }
346365]
347366```
@@ -578,7 +597,7 @@ returned, along with the `@context`.
578597 "type" : " Building"
579598 }
580599 ],
581- "properties" : [ " tweets" ]
600+ "properties" : " tweets"
582601 }
583602 ],
584603 "contextSourceInfo" : [
0 commit comments