Commit befb11da by jpalanca

Update README.md

parent 010fa9bb
...@@ -44,16 +44,16 @@ Create product ...@@ -44,16 +44,16 @@ Create product
Verify product Verify product
-------------- --------------
curl -X GET \ `curl -X GET \
http://localhost:1026/v2/entities/urn:ngsi-ld:Product:001 \ http://localhost:1026/v2/entities/urn:ngsi-ld:Product:001 \
-H 'fiware-path: /' \ -H 'fiware-path: /' \
-H 'fiware-service: sensores' -H 'fiware-service: sensores'`
Subscribe quantity to quantumleap Subscribe quantity to quantumleap
--------------------------------- ---------------------------------
curl -X POST \ `curl -X POST \
http://localhost:1026/v2/subscriptions/ \ http://localhost:1026/v2/subscriptions/ \
-H 'Content-Type: application/json' \ -H 'Content-Type: application/json' \
-H 'fiware-service: sensores' \ -H 'fiware-service: sensores' \
...@@ -82,13 +82,13 @@ curl -X POST \ ...@@ -82,13 +82,13 @@ curl -X POST \
"metadata": ["dateCreated", "dateModified"] "metadata": ["dateCreated", "dateModified"]
}, },
"throttling": 1 "throttling": 1
}' }'`
Subscribe quantity and size to quantumleap Subscribe quantity and size to quantumleap
------------------------------------------ ------------------------------------------
curl -X POST \ `curl -X POST \
http://localhost:1026/v2/subscriptions/ \ http://localhost:1026/v2/subscriptions/ \
-H 'Content-Type: application/json' \ -H 'Content-Type: application/json' \
-H 'fiware-service: sensores' \ -H 'fiware-service: sensores' \
...@@ -116,7 +116,7 @@ curl -X POST \ ...@@ -116,7 +116,7 @@ curl -X POST \
], ],
"metadata": ["dateCreated", "dateModified"] "metadata": ["dateCreated", "dateModified"]
} }
}' }'`
Modify quantity Modify quantity
...@@ -133,7 +133,7 @@ curl -X PUT \ ...@@ -133,7 +133,7 @@ curl -X PUT \
Modify quantity and size Modify quantity and size
------------------------ ------------------------
curl -iX PATCH \ `curl -iX PATCH \
--url 'http://localhost:1026/v2/entities/urn:ngsi-ld:Product:001/attrs' \ --url 'http://localhost:1026/v2/entities/urn:ngsi-ld:Product:001/attrs' \
-H 'Content-Type: application/json' \ -H 'Content-Type: application/json' \
-H 'fiware-path: /' \ -H 'fiware-path: /' \
...@@ -141,26 +141,26 @@ curl -iX PATCH \ ...@@ -141,26 +141,26 @@ curl -iX PATCH \
--data ' { --data ' {
"quantity":{"type":"Integer", "value": '$1'}, "quantity":{"type":"Integer", "value": '$1'},
"size": {"type":"Text", "value": "'$2'"} "size": {"type":"Text", "value": "'$2'"}
}' }'`
Active subscriptions Active subscriptions
-------------------- --------------------
curl -X GET \ `curl -X GET \
http://localhost:1026/v2/subscriptions/ \ http://localhost:1026/v2/subscriptions/ \
-H 'fiware-service: sensores' \ -H 'fiware-service: sensores' \
-H 'fiware-servicepath: /' -H 'fiware-servicepath: /'`
Query temporal serie of quantity 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' \ 'http://localhost:8668/v2/entities/urn:ngsi-ld:Product:001/attrs/quantity?lastN=1000' \
-H 'Accept: application/json' \ -H 'Accept: application/json' \
-H 'Fiware-Service: sensores' \ -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