-
Notifications
You must be signed in to change notification settings - Fork 0
/
refernce.j
140 lines (105 loc) · 2.09 KB
/
refernce.j
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
server will need only two routes: one for post and one for get requests
app.get('/dataBaseRead',****){
determine which function to call using scope and query part of req.
}
app.post('/dataBaseModify',****){
determine which function to call using scope and query part of req.
}
************routes for user(otp) verification***************
shop owner mobile no will be id of shop id.
1.(to request otp)
=>input
{
scope:"verification",
query:"sendOTP"
content:
{
mobile:"########"
}
}
=>output:
{
status:"send or failed"
}
2.(to verify otp enter by user)
=>input
{
scope:"verification",
query:"verifyOTP"
content:{
mobile:"########"
otp:"6 digit number"
}
}
=>output
{
status:" verified or failed or timeOut"
}
3.(to resend OTP)
=>input
{
scope:"verification",
query:"resend"
content:{
mobile:"########"
}
}
=>output
{
status:"resend or error"
}
***************************************Routes for shop registration*******************
1.(request for shop registration)
what if location given by shop owner and given by lat,log don't match
=>input
{
scope:"shopRegistration",
query:"registerShop",
content:{
shopName:"",
shopType:"spa or saloon or (spa +saloon)",
shopAddress:"entered by owmner",
lat:"lattitde of shop",
log:"longitude of shop"
}
}
=>output:
{
status:"registerd or failed"
}
************************************Routes of service*******************
1.
=>input
{
scope:"service",
query:"add",
content:{
domain:"hair,nail,or body",
service:"ex- cutting",
price:"a number",
shopId:" mobile number(with country code)"
}
}
=>output
{
stauts:"serviceAdded or failed"
}
**********************************Routes of package***************
1.
=>input
{
scope:"package",
query:"add",
content:{
servcies:[{
domain:"hair,nail or body",
service:"cutting"
}],
price:"price of package",
shopId:" mobile number(with country code)"
}
}
=>output
{
stauts:"packageAdded or failed"
}