-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathapi.http
More file actions
40 lines (29 loc) · 754 Bytes
/
api.http
File metadata and controls
40 lines (29 loc) · 754 Bytes
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
# 使用vscode插件
# https://marketplace.visualstudio.com/items?itemName=humao.rest-client
@baseURL = http://127.0.0.1:8765
### 注册
POST {{baseURL}}/register
{
"email": "test@example.com",
"password": "helloworld"
}
### 登录
POST {{baseURL}}/session
{
"email": "test@example.com",
"password": "helloworld"
}
### 退出
DELETE {{baseURL}}/session
### 当前登录账号信息
GET {{baseURL}}/session
### 修改密码
PUT {{baseURL}}/my/password
{
"old_password": "helloworld",
"new_password": "helloworld!"
}
### facebook登录
GET {{baseURL}}/login/oauth/facebook?redirect_uri=https://www.example.com/login/oauth/facebook
### google登录
GET {{baseURL}}/login/oauth/google?redirect_uri=https://www.example.com/login/oauth/google