File tree Expand file tree Collapse file tree 2 files changed +48
-40
lines changed Expand file tree Collapse file tree 2 files changed +48
-40
lines changed Original file line number Diff line number Diff line change
1
+ # Local Passport Api
2
+
3
+ ### 注册账号
4
+
5
+ POST {{$dotenv TDP_API_BASE }}/passport/register
6
+ Origin: {{$dotenv TDP_ORIGIN}}
7
+ Content-Type: application/json
8
+
9
+ {
10
+ "Username" :" {{$dotenv TDP_USERNAME}}" ,
11
+ "Password" : " {{$dotenv TDP_PASSWORD}}"
12
+ }
13
+
14
+ ### 登录账号
15
+
16
+ POST {{$dotenv TDP_API_BASE }}/passport/login
17
+ Origin: {{$dotenv TDP_ORIGIN}}
18
+ Content-Type: application/json
19
+
20
+ {
21
+ "Username" :" {{$dotenv TDP_USERNAME}}" ,
22
+ "Password" : " {{$dotenv TDP_PASSWORD}}"
23
+ }
24
+
25
+ ### 修改资料
26
+
27
+ PATCH {{$dotenv TDP_API_BASE }}/passport/info
28
+ Authorization: {{$dotenv TDP_AUTHORIZATION}}
29
+ Origin: {{$dotenv TDP_ORIGIN}}
30
+ Content-Type: application/json
31
+
32
+ {
33
+ "Description" : " 不可能!我的代码怎么可能会有Bug!"
34
+ }
35
+
36
+ ### 修改密码
37
+
38
+ PATCH {{$dotenv TDP_API_BASE }}/passport/password
39
+ Authorization: {{$dotenv TDP_AUTHORIZATION}}
40
+ Origin: {{$dotenv TDP_ORIGIN}}
41
+ Content-Type: application/json
42
+
43
+ {
44
+ "OldPassword" : " {{$dotenv TDP_PASSWORD}}" ,
45
+ "NewPassword" : " {{$dotenv TDP_PASSWORD}}"
46
+ }
Original file line number Diff line number Diff line change 1
1
# Local User Api
2
2
3
- ### 注册账号
3
+ ### 用户列表
4
4
5
- POST {{$dotenv TDP_API_BASE }}/user/register
6
- Origin: {{$dotenv TDP_ORIGIN}}
7
- Content-Type: application/json
8
-
9
- {
10
- "Username" :" {{$dotenv TDP_USERNAME}}" ,
11
- "Password" : " {{$dotenv TDP_PASSWORD}}"
12
- }
13
-
14
- ### 登录账号
15
-
16
- POST {{$dotenv TDP_API_BASE }}/user/login
17
- Origin: {{$dotenv TDP_ORIGIN}}
18
- Content-Type: application/json
19
-
20
- {
21
- "Username" :" {{$dotenv TDP_USERNAME}}" ,
22
- "Password" : " {{$dotenv TDP_PASSWORD}}"
23
- }
24
-
25
- ### 修改资料
26
-
27
- PATCH {{$dotenv TDP_API_BASE }}/user/info
28
- Authorization: {{$dotenv TDP_AUTHORIZATION}}
29
- Origin: {{$dotenv TDP_ORIGIN}}
30
- Content-Type: application/json
31
-
32
- {
33
- "Description" : " 不可能!我的代码怎么可能会有Bug!"
34
- }
35
-
36
- ### 修改密码
37
-
38
- PATCH {{$dotenv TDP_API_BASE }}/user/TDP_PASSWORD
5
+ GET {{$dotenv TDP_API_BASE }}/user
39
6
Authorization: {{$dotenv TDP_AUTHORIZATION}}
40
7
Origin: {{$dotenv TDP_ORIGIN}}
41
8
Content-Type: application/json
42
-
43
- {
44
- "OldPassword" : " {{$dotenv TDP_PASSWORD}}" ,
45
- "NewPassword" : " {{$dotenv TDP_PASSWORD}}"
46
- }
You can’t perform that action at this time.
0 commit comments