-
Notifications
You must be signed in to change notification settings - Fork 0
/
api.doc
58 lines (54 loc) · 1.28 KB
/
api.doc
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
URL: http://localhost:9090/contacts/addContact
METHOD: POST
BODY: {
"email":String,
"mobile":String (Optional),
"first_name":String,
"last_name":String,
"auth":String,
"device_token":String,
"finger_print":String
}
RESPONSE: {
"statusCode": 200,
"message": "Success",
"data":[Contact Object] {
"email":String,
"mobile":String (Optional),
"first_name":String,
"last_name":String,
"auth":String,
"device_token":String,
"finger_print":String
"_id": timestamp,
"created_at": timestamp,
"__v": integer
}
}
====================================================================
URL: http://localhost:9090/contacts/getList
METHOD: POST
BODY:{
"pageNum":Integer,
"auth":String,
"device_token":String,
"finger_print":String
}
RESPONSE: {
"statusCode": 200,
"message": "Success",
"data": [Array of 5 Contacts based on pageNum]
}
=======================================================================
URL: http://localhost:9090/contacts/getRecentList
METHOD: POST
BODY:{
"auth":String,
"device_token":String,
"finger_print":String
}
RESPONSE: {
"statusCode": 200,
"message": "Success",
"data": [Array of 5 latest Contacts]
}