Appearance
Service API Documentation
All service APIs require Bearer Token authentication.
Authentication
Add to the request header:
Authorization: Bearer <token>
Get Token: Oauth
1. Get Current User Information
Endpoint: POST /serive/v0/self_info
Description: Get information about the currently logged-in user (validated via token, add Authorization: Bearer $token in the request body)
Request Body: None
Response:
json
{
"code": 200,
"data": {
"uid": number,
"name": "string",
"mail": "string",
"ctime": "string"
}
}
(Note: ctime is a valid ISO time string)
Error Responses:
400: User data does not exist or format is invalid
2. Get Specified User Information
Endpoint: POST /serive/v0/user
Description: Get user information based on uid (excluding sensitive information)
Request Body:
json
{
"uid": number
}
Response:
json
{
"code": 200,
"data": {
"uid": number,
"name": "string",
"ctime": "string"
}
}
Note: Returned data does not include mail and password fields.
Error Responses:
400: Bad request format404: User does not exist