Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fiware
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
platinum
fiware
Commits
befb11da
Commit
befb11da
authored
Jul 03, 2019
by
jpalanca
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.md
parent
010fa9bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
README.md
README.md
+12
-12
No files found.
README.md
View file @
befb11da
...
...
@@ -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: /'
\
`
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment