Commit befb11da by jpalanca

Update README.md

parent 010fa9bb
......@@ -44,16 +44,16 @@ Create product
Verify product
--------------
curl -X GET \
`curl -X GET \
http://localhost:1026/v2/entities/urn:ngsi-ld:Product:001 \
-H 'fiware-path: /' \
-H 'fiware-service: sensores'
-H 'fiware-service: sensores'`
Subscribe quantity to quantumleap
---------------------------------
curl -X POST \
`curl -X POST \
http://localhost:1026/v2/subscriptions/ \
-H 'Content-Type: application/json' \
-H 'fiware-service: sensores' \
......@@ -82,13 +82,13 @@ curl -X POST \
"metadata": ["dateCreated", "dateModified"]
},
"throttling": 1
}'
}'`
Subscribe quantity and size to quantumleap
------------------------------------------
curl -X POST \
`curl -X POST \
http://localhost:1026/v2/subscriptions/ \
-H 'Content-Type: application/json' \
-H 'fiware-service: sensores' \
......@@ -116,7 +116,7 @@ curl -X POST \
],
"metadata": ["dateCreated", "dateModified"]
}
}'
}'`
Modify quantity
......@@ -133,7 +133,7 @@ curl -X PUT \
Modify quantity and size
------------------------
curl -iX PATCH \
`curl -iX PATCH \
--url 'http://localhost:1026/v2/entities/urn:ngsi-ld:Product:001/attrs' \
-H 'Content-Type: application/json' \
-H 'fiware-path: /' \
......@@ -141,26 +141,26 @@ curl -iX PATCH \
--data ' {
"quantity":{"type":"Integer", "value": '$1'},
"size": {"type":"Text", "value": "'$2'"}
}'
}'`
Active subscriptions
--------------------
curl -X GET \
`curl -X GET \
http://localhost:1026/v2/subscriptions/ \
-H 'fiware-service: sensores' \
-H 'fiware-servicepath: /'
-H 'fiware-servicepath: /'`
Query temporal serie of quantity
--------------------------------
curl -X GET \
`curl -X GET \
'http://localhost:8668/v2/entities/urn:ngsi-ld:Product:001/attrs/quantity?lastN=1000' \
-H 'Accept: application/json' \
-H 'Fiware-Service: sensores' \
-H 'Fiware-ServicePath: /' \
-H 'Fiware-ServicePath: /' \`
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment