ultone/httptest/user.http

36 lines
634 B
Plaintext
Raw Normal View History

2024-07-19 16:43:12 +08:00
### login
POST http://127.0.0.1:8080/api/user/auth/login
Content-Type: application/json
{
"username": "admin",
"password": "123456"
}
2025-01-14 00:42:18 -08:00
### logout
POST http://127.0.0.1:8080/api/user/auth/logout
Content-Type: application/json
{}
2024-07-19 16:43:12 +08:00
### verify login state
GET http://127.0.0.1:8080/api/user/auth/login
### change self password
POST http://127.0.0.1:8080/api/user/update
Content-Type: application/json
{
"old_password": "123456",
"new_password": "654321@AaBbCc"
}
### relogin with new password
POST http://127.0.0.1:8080/api/user/auth/login
Content-Type: application/json
{
"username": "admin",
"password": "654321@AaBbCc"
}