-
Notifications
You must be signed in to change notification settings - Fork 0
/
Data_plot.json
89 lines (82 loc) · 1.68 KB
/
Data_plot.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
81
82
83
84
85
86
87
88
89
#FTC-server & client communication plots
--Validation Request:
Request Plot:
*FTCCLANP/valid/<DATA>/END
$DATA:
{
worker_id: 0,
password: "password_example"
}
Response Plot:
*FTCCLANP/validsuccess/NULL/END
*FTCCLANP/validationunsuccess/NULL/END
--Search Request:
Request Plot:
*FTCCLANP/search/<DATA>/END
$DATA:
{
name: "exemplo nome",
department: "esrg",
job: "electrical engineer"
}
Response Plots:
*FTCCLANP/searchsuccess/<data>/END
[
{
name: "Nome",
worker_id: 1,
clock_in: "13h40",
clock_out: "14h00"
},
#...
]
*FTCCLANP/searchunsuccess/<data>/END
data -> nothing
--Get basic info request:
Request plot_
*FTCCLANP/getBasInfo/data/END
{
user_id: 1
}
Responses plot:
*FTCCLANP/successgetBasInf/data/END
{
name: "exemplo nome",
privelege: 0,
worker_id: 1
}
--Get messages_
Request plot:
*FTCCLANP/getmessage/<data>/END
{
"worker_id":
}
Response plot:
*FTCCLANP/getmessagesuccess/<data>/END
{
"message" : "Message content",
"form_worker_id": 0,
"data_time": "24/11/2016 00:00"
}
--send message
Request plot:
*FTCCLANP/sendmessage/<data>/END
{
from_worker_id: 0,
to_worker_id: 1,
message: "vai trabalhar"
}
*FTCCLANP/sendmessagesuccess/NULL/END
--clock in:
Request plot:
*FTCCLANP/clockIn/<data>/END
{
user_id: 1,
clock_state: 1
}
Response plot:
*FTCCLANP/clockOut/<data>/END
{
user_id: 1,
clock_state: 0
}