# User
# Get Basic Information
In the returned user information, the permission
field contains 4 possible values:
value | meaning |
---|---|
-1 | Banned |
0 | Normal/User |
1 | Administrator |
2 | Super Administrator |
GET /api/user
# No Parameters
# Response
Status: 200
{
"uid": 1,
"email": "[email protected]",
"nickname": "name",
"avatar": 0,
"score": 1000,
"permission": 0,
"last_sign_at": "2020-01-01 00:00:00",
"register_at": "2020-01-01 00:00:00",
"verified": true
}
# Get Notifications
Gets all unread notifications.
GET /api/user/notifications
# No Parameters
# Response
Status: 200
[
{
"id": "<uuid>",
"title": "notification title"
}
]
# Read Single Notification
Get the title and content of a single notification and mark the notification as "read".
POST /api/user/notifications/{id}
# No Parameters
# Response
Status: 200
{
"title": "notification title",
"content": "HTML content",
"time": "2020-01-01 00:00:00"
}