add http files
This commit is contained in:
2
http/device-api/actuator.http
Normal file
2
http/device-api/actuator.http
Normal file
@@ -0,0 +1,2 @@
|
||||
### get actuator
|
||||
GET {{hostname}}/actuator
|
||||
3
http/device-api/configuration.http
Normal file
3
http/device-api/configuration.http
Normal file
@@ -0,0 +1,3 @@
|
||||
### get configuration
|
||||
GET {{hostname}}/configuration
|
||||
Identity: {{identity}}
|
||||
14
http/device-api/http-client.env.json-dev
Normal file
14
http/device-api/http-client.env.json-dev
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"development": {
|
||||
"hostname": "https://localhost:8443",
|
||||
"identity": "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
||||
},
|
||||
"docker": {
|
||||
"hostname": "https://localhost:9000",
|
||||
"identity": "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
||||
},
|
||||
"testing": {
|
||||
"hostname": "https://10.0.x.x",
|
||||
"identity": "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
||||
}
|
||||
}
|
||||
23
http/device-api/measurement.http
Normal file
23
http/device-api/measurement.http
Normal file
@@ -0,0 +1,23 @@
|
||||
### get measurement
|
||||
GET {{hostname}}/measurement
|
||||
Identity: {{identity}}
|
||||
|
||||
### add measurement for all
|
||||
POST {{hostname}}/measurement
|
||||
Content-Type: application/json
|
||||
Identity: {{identity}}
|
||||
|
||||
{
|
||||
"button0": 0,
|
||||
"button1": 1,
|
||||
"button2": 0
|
||||
}
|
||||
|
||||
### add measurement for one
|
||||
POST {{hostname}}/measurement
|
||||
Content-Type: application/json
|
||||
Identity: {{identity}}
|
||||
|
||||
{
|
||||
"button0": 1
|
||||
}
|
||||
Reference in New Issue
Block a user