-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.http
163 lines (121 loc) · 2.96 KB
/
test.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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
@baseURL= http://localhost:8082
# @baseURL= https://go-staywatch.kajilab.tk
# @baseURL= https://go-staywatch-test.kajilab.tk
###
Get {{baseURL}}/api/v1/stayers
###
Get {{baseURL}}/api/v1/logs
### 以前まで使われていたAPI
GET {{baseURL}}/api/v1/users
###
GET {{baseURL}}/api/v1/users/2
### 管理者画面でのユーザ情報の取得
GET {{baseURL}}/api/v1/admin/users/2
### DBをCloudStorageへバックアップ
POST {{baseURL}}/api/v1/admin/resources/backup
###
POST {{baseURL}}/api/v1/users HTTP/1.1
content-type: application/json
{
"name":"tarou",
"uuid":"",
"email":"ssinya092222@gmail.com",
"role":1,
"communityId":1,
"beaconName":"FCS1301",
"tagIds":[1,5,10]
}
###
PUT {{baseURL}}/api/v1/users HTTP/1.1
content-type: application/json
{
"id":10,
"name":"taadakadu",
"uuid":"adfawefasdfwefasdfwedefewd",
"email":"ssinya09fda22d2dadf2@gmail.com",
"role":1,
"communityId":1,
"beaconName":"FCS1301",
"tagIds":[1,5,10]
}
###
DELETE {{baseURL}}/api/v1/users/16 HTTP/1.1
###
Get {{baseURL}}/api/v1/users/extended
###
POST https://hooks.slack.com/services/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
content-type: application/json
{
"text":"test"
}
###
POST https://hooks.slack.com/services/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
content-type: application/json
{
"text":"test"
}
###
Get {{baseURL}}/api/v1/list/simultaneous/1
###
Get {{baseURL}}/api/v1/list/simultaneous/2
### 入室も退室も同じAPI
POST {{baseURL}}/api/v1/stayers HTTP/1.1
content-type: application/json
{
"beacons":[
{
"uuid": "4c000180000021000022000121000024000023",
"rssi": -49
},
{
"uuid": "8ebc21144abdba0db7c6ff0f0027ac00",
"rssi": -49
}
],
"roomId": 1
}
### 受信したビーコンの情報を渡す
POST {{baseURL}}/api/v1/stayers HTTP/1.1
content-type: application/json
{
"beacons":[
],
"roomId": 1
}
//無駄なコロンをつけるとエラーになるので注意
//例
# {
# "meetingID":"2",
# }
###
POST {{baseURL}}/api/v1/attendance HTTP/1.1
content-type: application/json
{
"meetingID":2
}
###
GET {{baseURL}}/api/v1/logs/gantt HTTP/1.1
content-type: application/json
###
GET {{baseURL}}/api/v1/check
###
GET {{baseURL}}/api/v1/rooms/2
### 部屋名のフォーム送信
PUT {{baseURL}}/api/v1/rooms HTTP/1.1
content-type: application/json
{
"roomId":1,
"roomName":"学生部屋",
"polygon":[[2170, 1480],[2403,1600]],
"buildingId":2
}
### 建物の情報を全て取得する
GET {{baseURL}}/api/v1/buildings/editor
### ビーコンの情報を全て取得する
GET {{baseURL}}/api/v1/beacons
### IDからコミュニティ情報を取得する
GET {{baseURL}}/api/v1/communities/1
### コミュニティ(共用も)のタグの名前を取得する
GET {{baseURL}}/api/v1/tags/1/names
### コミュニティ(共用も)のタグを取得する
GET {{baseURL}}/api/v1/tags/2