forked from shuosc/SHUhelper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi.http
53 lines (43 loc) · 922 Bytes
/
api.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
# [WIP] SHUhelper 后端 API 参考文档
@host = http://localhost:5000
@contentType = application/json
@userID = id
@password = pass
# @name login
POST {{host}}/auth/login
Content-Type: {{contentType}}
{
"userID": "{{userID}}",
"password": "{{password}}"
}
###
# @name getTime
GET {{host}}
Authorization: {{login.response.body.token}}
###
# @name index
GET {{host}}
Authorization: {{login.response.body.token}}
###
GET {{host}}/room-booking/rooms
Authorization: {{login.response.body.token}}
###
GET {{host}}/room-booking/orders
Authorization: {{login.response.body.token}}
###
POST {{host}}/lost-n-found/
Content-Type: {{contentType}}
Authorization: {{login.response.body.token}}
{
"title":"1123",
"content":"123",
"category":"123",
"contact":"18800206081",
"address":"",
"type":"found",
"imgURLs":[],
"latitude": 12,
"longitude": 12,
"occurredTime": 65525
}
###