-
Notifications
You must be signed in to change notification settings - Fork 12
/
doc.json
80 lines (80 loc) · 2.7 KB
/
doc.json
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
{
"endpoints": [
{
"method": "GET",
"path": "/api/status",
"description": "running status of the machine"
},
{
"method": "POST",
"path": "/api/status/ {\"active\": \"true/false\"}",
"description": "change the status of the machine - on or standby"
},
{
"method": "GET",
"path": "/api/status/details",
"description": "get a detailed status of your machine - the available information depends on the state/substate"
},
{
"method": "GET",
"path": "/api/shot/",
"description": "get a list of the shots on your machine"
},
{
"method": "GET",
"path": "/api/shot/{shot.tcl}",
"description": "get a single shot as "
},
{
"method": "GET",
"path": "/api/profile",
"description": "list of profiles on your machine"
},
{
"method": "GET",
"path": "/api/profile/{profile_filename.tcl}",
"description": ""
},
{
"method": "POST",
"path": "/api/profile/",
"description": "add a profile to your machine - the filename of the uploaded profile will be used, so existing profiles could be overwritten"
},
{
"method": "PUT",
"path": "/api/profile/{profile_filename.tcl}",
"description": "Select an existing profile"
},
{
"method": "GET",
"path": "/",
"description": "Dashboard including most API functions"
},
{
"method": "GET",
"path": "/api/flush",
"description": "Flush the log"
},
{
"method": "PUT",
"path": "/api/v2/shot/{timestamp}",
"description": "Set the specified shots' DYE description as next planned shot in DYE."
},
{
"method": "GET",
"path": "/api/v2/shot/{timestamp}",
"description": "Returns a json representation of the specified shot (if found)."
},
{
"method": "GET",
"path": "/api/v2/shots",
"description": "Returns a json array of all the shots data present in SDB. Does not include graph data."
},
{
"method": "GET",
"path": "/api/help",
"description": "Get this short API doc."
}
],
"authentication": "Authentication is done with a header param auth - if enabled it needs to match the configured string"
}