forked from LaserQueue/LaserQueue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi docs
120 lines (71 loc) · 1.98 KB
/
api docs
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
comm protocols
Sending to server
Format:
{
"action": action to perform
"args": list of arguments
"sid": your session ID.
}
actions:
Note: only listing recommended actions. using the undocumented actions might result in unexpected errors.
add
arguments: name, priority, estimated time, material code
adds the specified name, priority, etc to the list.
upass
arguments: uuid
moves the specified job below the next job.
uremove
arguments: uuid
removes the specified job from the list.
umove *§
arguments: uuid, target index, target priority
moves the specified job to the target index, and the target priority.
uincrement *§
arguments: uuid
moves the specified job up one job, or if it's at the top of its priority level, up one priority.
udecrement *§
arguments: uuid
moves the specified job down one job, or if it's at the bottom of its priority level, down one priority.
auth
arguments: sha1 hash of password
enter admin mode if password is correct.
deauth
arguments: N/A
leave admin mode.
null
arguments: N/A
nothing
shame
arguments: N/A
if you had a failed auth attempt, remove yourself from the deauths list.
refresh
arguments: N/A
refresh all users. Useful for pushing changes.
dependent upon config.allow_force_refresh.
uuddlrlrba §
arguments: N/A
huehuehue
dependent upon config.easter_eggs.
*: applies the Modified gear.
§: requires auth by default.
Sending to client:
the action tag defines the data sent.
display
{
"action": "display"
"currtime": current time of operation. leave as -1 if you don't want it to render. ### NYI ###
"esttime": estimated time of the operation. leave as -1 if you don't want it to render. ### NYI ###
"queue": the queue object.
"auths": a list of the first halves of every auth'd sid.
"deauths": a list of the first halves of every sid that failed to auth.
}
refresh the page.
dependent upon config.allow_force_refresh
{
"action":"refresh"
}
rickroll everyone.
dependent upon config.easter_eggs
{
"action":"rickroll"
}