add http files
This commit is contained in:
2
http/device-data/actuator.http
Normal file
2
http/device-data/actuator.http
Normal file
@@ -0,0 +1,2 @@
|
||||
### get actuator
|
||||
GET {{hostname}}/actuator
|
||||
11
http/device-data/http-client.env.json-dev
Normal file
11
http/device-data/http-client.env.json-dev
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"development": {
|
||||
"hostname": "http://localhost:8080"
|
||||
},
|
||||
"docker": {
|
||||
"hostname": "http://localhost:9020"
|
||||
},
|
||||
"testing": {
|
||||
"hostname": "http://10.0.x.x"
|
||||
}
|
||||
}
|
||||
34
http/device-data/measurement.http
Normal file
34
http/device-data/measurement.http
Normal file
@@ -0,0 +1,34 @@
|
||||
|
||||
|
||||
### add measurement for all
|
||||
POST {{hostname}}/client-00000000-0000-7000-0001-000000000001
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"tags": {
|
||||
"device": "00000000-0000-7000-0002-000000000001",
|
||||
"node": "00000000-0000-7000-0003-000000000001"
|
||||
},
|
||||
"fields": {
|
||||
"button0": 1,
|
||||
"button1": 0,
|
||||
"button2": 1
|
||||
}
|
||||
}
|
||||
|
||||
### add measurement for one
|
||||
POST {{hostname}}/client-00000000-0000-7000-0001-000000000001
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"tags": {
|
||||
"device": "00000000-0000-7000-0002-000000000001",
|
||||
"node": "00000000-0000-7000-0003-000000000001"
|
||||
},
|
||||
"fields": {
|
||||
"button1": 0
|
||||
}
|
||||
}
|
||||
|
||||
### add measurement
|
||||
GET {{hostname}}/client-00000000-0000-7000-0001-000000000001/node-00000000-0000-7000-0003-000000000001
|
||||
Reference in New Issue
Block a user