-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcsapitester.http
More file actions
97 lines (88 loc) · 2.38 KB
/
csapitester.http
File metadata and controls
97 lines (88 loc) · 2.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
### GET request to example server
GET https://examples.http-client.intellij.net/get
?generated-in=PyCharm
###
POST http://localhost:8282/sensorhub/api/systems/027eljmqhd40/controlstreams
Content-Type: application/json
Authorization: Basic YWRtaW46YWRtaW4=
{
"name": "Controllable Counter Control",
"validTime": [
"2025-10-14T15:29:40.574235Z",
"2026-10-14T15:29:40.000000Z"
],
"inputName": "controllablecountercontrol",
"async": true,
"schema": {
"commandFormat": "application/json",
"parameterSchema": {
"type": "DataRecord",
"label": "Controllable Counter Control",
"description": "Control stream for the controllable counter simulation",
"updatable": false,
"optional": false,
"definition": "http://bottsinc.com/def/ControllableCounterControl",
"fields": [
{
"type": "Boolean",
"label": "Set Count Down",
"updatable": false,
"optional": false,
"definition": "http://bottsinc.com/def/SetCountDown",
"name": "setCountDown"
},
{
"type": "Count",
"label": "Set Step",
"updatable": false,
"optional": false,
"definition": "http://bottsinc.com/def/SetStep",
"name": "setStep"
},
{
"type": "Count",
"label": "Set Lower Bound",
"updatable": false,
"optional": false,
"definition": "http://bottsinc.com/def/SetLowerBound",
"name": "setLowerBound"
},
{
"type": "Count",
"label": "Set Upper Bound",
"updatable": false,
"optional": false,
"definition": "http://bottsinc.com/def/SetUpperBound",
"name": "setUpperBound"
}
]
}
}
}
###
POST http://localhost:8282/sensorhub/api/controlstreams/027eljmqhd40/commands
Content-Type: application/json
Authorization: Basic YWRtaW46YWRtaW4=
{
"params": {
"setCountDown": true,
"setStep": 5,
"setLowerBound": 0,
"setUpperBound": 100
}
}
###
POST http://localhost:8282/sensorhub/api/controlstreams/027eljmqhd40/commands
Content-Type: application/json
Authorization: Basic YWRtaW46YWRtaW4=
{
"params": {
"setCountDown": false,
"setStep": 1,
"setLowerBound": 0,
"setUpperBound": 100
}
}
###
GET http://localhost:8282/sensorhub/api/systems
Authorization: Basic YWRtaW46YWRtaW4=