-
Notifications
You must be signed in to change notification settings - Fork 176
/
http.http
92 lines (75 loc) · 1.42 KB
/
http.http
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
@hostname = 192.168.50.89
@port = 31950
@host = http:https://{{hostname}}:{{port}}
@contentType = application/json
@createdAt = {{$datetime iso8601}}
@modifiedBy = {{$processEnv USERNAME}}
@header = opentrons-version: *
@runId = fd0983a4-5d5c-4f88-9925-7ea5422140ee
@binary = true
GET {{host}}/health
opentrons-version: *
###
GET {{host}}/modules
opentrons-version: *
###
GET {{host}}/logs/serial.log
opentrons-version: *
###
GET {{host}}/logs/api.log
opentrons-version: *
###
GET {{host}}/logs/server.log
opentrons-version: *
###
POST {{host}}/robot/lights
opentrons-version: *
{"on": "{{binary}}" }
###
GET {{host}}/runs
opentrons-version: *
Content-Type: {{contentType}}
###
# Create a run
POST {{host}}/runs
opentrons-version: *
Content-Type: application/json
{
"data": {}
}
###
GET {{host}}/runs/{{runId}}/commands
opentrons-version: *
###
POST {{host}}/runs/{{runId}}/commands
opentrons-version: *
Content-Type: application/json
{
"data": {
"commandType": "setRailLights",
"params": {
"on": true
}
}
}
###
POST {{host}}/runs/{{runId}}/commands
opentrons-version: *
Content-Type: application/json
{
"data": {
"commandType": "loadModule",
"params": {
"model": "magneticModuleV1",
"location": {
"slotName": "3"
}
}
}
}
###
GET {{host}}/commands
opentrons-version: *
###
GET {{host}}/protocols
opentrons-version: *