-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapi.http
86 lines (67 loc) · 1.53 KB
/
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
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
### 用户 - 登录
POST {{domain}}/api/v1/access-token/login
Content-Type: application/json
{
"code": "code"
}
### 用户 - 详情
POST {{domain}}/api/v1/users/detail
Authorization: Bearer {{open_id}}
### 用户 - 更新
POST {{domain}}/api/v1/users/update
Content-Type: application/json
Authorization: Bearer {{open_id}}
{
"avatar": "123456789",
"nickname": "yansongdaa",
"slogan": "Coding My Life...😄"
}
### TOTP - 所有
POST {{domain}}/api/v1/totp/all
Authorization: Bearer {{open_id}}
### TOTP - 详情
POST {{domain}}/api/v1/totp/detail
Content-Type: application/json
Authorization: Bearer {{open_id}}
{
"id": 1
}
### TOTP - 创建
POST {{domain}}/api/v1/totp/create
Content-Type: application/json
Authorization: Bearer {{open_id}}
{
"uri": "otpauth://totp/GitHub:yansongda?secret=LBKODWEWIEEEMQKY&issuer=GitHub"
}
### TOTP - 更新
POST {{domain}}/api/v1/totp/update
Content-Type: application/json
Authorization: Bearer {{open_id}}
{
"id": 1,
"issuer": "Google Search",
"username": "yansongda-search"
}
### TOTP - 删除
POST {{domain}}/api/v1/totp/delete
Content-Type: application/json
Authorization: Bearer {{open_id}}
{
"id": 1
}
### 短链 - 创建
POST {{domain}}/api/v1/short-url/create
Content-Type: application/json
Authorization: Bearer {{open_id}}
{
"url": "https://yansongda.cn"
}
### 短链 - 详情
POST {{domain}}/api/v1/short-url/detail
Content-Type: application/json
Authorization: Bearer {{open_id}}
{
"short": "3ULY6"
}
### 短链 - 访问
GET {{domain}}/api/v1/short-url/redirect/{{short}}