RESTful API
用户认证
登录
POST https://{{host}}/api/auth/signin
1
参数
{
"username": "george@betterde.com",
"password": "chopin"
}
1
2
3
4
2
3
4
响应
{
"code": 200,
"message": "登录成功",
"data": {
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1Njc0OTgyNzcsImlhdCI6MTU2NzQxMTg3NywiaXNzIjoiZWN0cyIsIm5iZiI6MTU2NzQxMTg3Nywic3ViIjoiMzM1NWExZDAtMTJjOS00MmE0LWE3ZDYtYmRjZjdkNDY5NjQzIn0.vMwFfIyH_CJcbbiO2-uRYiTDoaqWZ8zgiN5gGjdUhRY",
"token_type": "Bearer",
"expires_in": 86400
}
}
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9