mirror of
https://github.com/HackPlan/RootPanel.git
synced 2026-03-30 15:05:38 +08:00
517 B
517 B
User API
POST /user/signup/
Request:
{
"username": "jysperm",
"passwd": "password"
}
Response:
{
"id": "525284cc2cebb6d0008b4567"
}
Exception:
- username_exist
- invalid_username
- invalid_passwd
POST /user/login/
Request:
{
"username": "jysperm",
"passwd": "passwd"
}
Response:
{
"id": "525284cc2cebb6d0008b4567",
"token": "b535a6cec7b73a60c53673f434686e04972ccafddb2a5477f066f30eded55a9b"
}
Exception:
- auth_failed