-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrequest.http
150 lines (122 loc) · 4.42 KB
/
request.http
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
141
142
143
144
145
146
147
148
149
### Login Yusup
GET http://localhost:8080/auth/signin
Content-Type: application/json
{
"device_token": "intmsmexxslw",
"ip_address": "1231123",
"email": "[email protected]",
"password": "password"
}
### Refresh Token Yusup
GET http://localhost:8080/auth/refresh
Content-Type: application/json
{
"refresh_token": "a233458c-edba-4744-86af-6b32a4075c91"
}
### Refresh Token Chathil
GET https://qcounter.herokuapp.com/auth/refresh
Content-Type: application/json
{
"refresh_token" : "7c06d7d1-77de-4e00-8081-7f0fe53eff3a"
}
### Login Chathil
GET https://qcounter.herokuapp.com/auth/signin
Content-Type: application/json
{
"device_token": "fakesstodken",
"ip_address": "1231123",
"email": "[email protected]",
"password": "password"
}
### Signup Ihza
POST https://qcounter.herokuapp.com/auth/signup
Content-Type: application/json
{
"device_token": "this is a uswer devive toksen sss23345ss",
"ip_address": "192.200.020.210",
"name": "Ihza SS",
"email": "[email protected]",
"password": "password"
}
### Login Ihza
GET https://qcounter.herokuapp.com/auth/signin
Content-Type: application/json
{
"device_token": "this iss a usswer devive toksen sss23345ss",
"ip_address": "192.200.020.210",
"email": "[email protected]",
"password": "password"
}
### Refresh token Ihza
GET http://localhost:8080/auth/refresh
Content-Type: application/json
{
"refresh_token" : "63e9be63-3508-4a97-bfdf-876493285c01"
}
### Login Lakeesha from the hood
GET http://localhost:8080/auth/signin
Content-Type: application/json
{
"device_token": "this is a uswers devive toksen sss23345sss",
"ip_address": "192.200.020.210",
"email": "[email protected]",
"password": "password"
}
### Create Queue
POST https://qcounter.herokuapp.com/queue
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxIiwiaWF0IjoxNTk2MTE2MzM5LCJleHAiOjE1OTYxNDg3Mzl9.9Y0CCMjH_NSWbaky08TEJ9CYLf0rfJxnP5ry91b2DDgOrn4gzTWrWk8nfi5Zm-JFQrk2AAEvEyIkG6QJ0COM-A
Content-Type: application/json
{
"id": "id2gene3ratedfrsssosmclient",
"name": "Contoh nama antrian 3",
"desc": "Contoh deskripsi 111",
"max": 100,
"increment_by": 2,
"valid_for": 32400000,
"contact": "085306440054",
"is_closed_queue": false,
"ip_address": "192.189.220.222"
}
### Join a queue/ Get in line
POST https://qcounter.herokuapp.com:8080/queue/join
#Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIzIiwiaWF0IjoxNTk2MTE4ODc3LCJleHAiOjE1OTYxNTEyNzd9.ybRei0d8G7AznGODdlvd37dRo7aiNpRok16CRPkF_RF860y5asLL1rbgpWxXoB2Sd_IO-e_BzRg-awBSjTPNLg
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxIiwiaWF0IjoxNTk2MTE2MzM5LCJleHAiOjE1OTYxNDg3Mzl9.9Y0CCMjH_NSWbaky08TEJ9CYLf0rfJxnP5ry91b2DDgOrn4gzTWrWk8nfi5Zm-JFQrk2AAEvEyIkG6QJ0COM-A
Content-Type: application/json
{
"queue_id": "VlTudOiQ1K7l5kg6xLDyA38JLdPbl_2loOfUwA20cZykYgr4_6qAlxKaGdIuFZw8TKhuyIsE4D41PjOlwUo13g3",
"ip_address": "192.1782.2222",
"full_name": "Ihza Ahmad III",
"contact": "0853005488"
}
### Logout
GET http://localhost:8080/user/signout
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIyIiwiaWF0IjoxNTk2Mzg0MjYwLCJleHAiOjE1OTY0MTY2NjB9.ChFkgCoAIbzaXH8D_ADZjSKfPr5Xf0WH4NLI8ZRsJ4Qh32I5i7d7LOdx-e6Big0WXQgtje3QiFP9YvqQqZJ_yw
Content-Type: application/json
{
"device_token": "intexxslw"
}
### inqueues
GET http://localhost:8080/in_queue
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiI2IiwiaWF0IjoxNTk2NTIzNjg2LCJleHAiOjE1OTY1NTYwODZ9.SNZ2veeITP3Su9WbQ5JbzdDQrGExkBfqLDZWjnsPVRAztSGgnBI095iaNHELtArOCAD2A9JWlyAtBZWIr3kwaA
Content-Type: application/json
{
"queue_id": "VlTudOiQ1K7l5kg6xLDyA38JLdPbl_2loOfUwA20cZykYgr4_6qAlxKaGdIuFZw8TKhuyIsE4D41PjOlwUo13g3"
}
### add to queue
POST http://localhost:8080/in_queue
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIyIiwiaWF0IjoxNTk2NjE0NTM1LCJleHAiOjE1OTY2NDY5MzV9.QSbZU_ETnAxnZqSLs0DMicQcyWrawEnH62wKWCtSpC0g74XHPfpvfwyNDTuxjjzCHotkqDn2t6HPQEqnfx5KMw
Content-Type: application/json
{
"queue_id": "VlTudOiQ1K7l5kg6xLDyA38JLdPbl_2loOfUwA20cZykYgr4_6qAlxKaGdIuFZw8TKhuyIsE4D41PjOlwUo13g3",
"ip_address": "192.1782.2222",
"full_name": "Ihza Ahmad III",
"contact": "0853005488"
}
### delete from queue
DELETE http://localhost:8080/in_queue
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIyIiwiaWF0IjoxNTk2Njc2Nzc4LCJleHAiOjE1OTY3MDkxNzh9.Be4iTjSPFxQyXNeuq3vJw0oZDL-uNm2-yJz-DKvgKW9h5VOJ_1l7X0LVUkMhpUvP9gOzHtDLUTXzikF9prHSHw
Content-Type: application/json
{
"queue_id": "VlTudOiQ1K7l5kg6xLDyA38JLdPbl_2loOfUwA20cZykYgr4_6qAlxKaGdIuFZw8TKhuyIsE4D41PjOlwUo13g3",
"id": 12
}