-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathobject.js
101 lines (90 loc) · 2.72 KB
/
object.js
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
base url: http://localhost:1337
// for UserController
'POST /user/create': 'UserController.create',
'POST /user/findOne': 'UserController.findOne',
'GET /user/find': 'UserController.find',
'POST /user/update': 'UserController.Update',
'DELETE /user/delete': 'UserController.delete',
'POST /user/login': 'UserController.login',
userobj
{
"first_name":"",
"last_name": "",
"mobile": "",
"password": "",
"role_type": ""
}
// for CustomersController
'POST /customer/create': 'CustomersController.create',
'GET /customer/find': 'CustomersController.find',
'POST /customer/findOne': 'CustomersController.findOne',
'POST /customer/update': 'CustomersController.Update',
'DELETE /customer/delete': 'CustomersController.delete',
'POST /customer/login': 'CustomersController.login',
customerobj
{
"first_name":"",
"last_name": "",
"mobile": "",
"password": "",
"cnic": "",
"email": ""
}
// for DocumentsController
'POST /documents/create': 'DocumentsController.create',
'GET /documents/find': 'DocumentsController.find',
'POST /documents/findOne': 'DocumentsController.findOne',
'POST /documents/update': 'DocumentsController.Update',
'DELETE /documents/delete': 'DocumentsController.delete',
documentobj
{
"file_name":"",
"file_path": "",
"customer_id": ""
}
// for BasestationController
'POST /basestation/create': 'BasestationController.create',
'GET /basestation/find': 'BasestationController.find',
'POST /basestation/findOne': 'BasestationController.findOne',
'POST /basestation/update': 'BasestationController.Update',
'DELETE /basestation/delete': 'BasestationController.delete',
basestationobj
{
"name":"",
"address": "",
"lat": "",
"lag": "",
"bandwidth": "",
"max_connection": ""
}
// for ConnectionController
'POST /connection/create': 'ConnectionController.create',
'GET /connection/find': 'ConnectionController.find',
'POST /connection/findOne': 'ConnectionController.findOne',
'POST /connection/update': 'ConnectionController.Update',
'DELETE /connection/delete': 'ConnectionController.delete',
connectionobj
{
"address":"",
"router_price": "",
"drop_wire": "",
"wire_length": "",
"price_per_meter": "",
"is_wireless": "",
"lat": "",
"lag": "",
"customer_id": "",
"basestation_id": "",
"salesman_id": "",
"dealer_id": "",
}
// for PackagesController
'POST /package/create': 'PackagesController.create',
'GET /package/find': 'PackagesController.find',
'POST /package/findOne': 'PackagesController.findOne',
'POST /package/update': 'PackagesController.Update',
'DELETE /package/delete': 'PackagesController.delete',
packageobj
{
"package_name":""
}