Admin API
後台登入管理員
POST hostname/api/admin/login
Request Body
Name
Type
Description
account*
String
使用者帳號(登入用的)
password*
String
密碼
{
"status": "success",
"token": string,
"data": {
"id": integer,
"name": string,
"email": string,
"account": string,
"password": string,
"role": "user",
"introduction": string,
"avatar": string,
"cover": string,
"tweet_count": integer,
"follower_count": integer,
"following_count": integer,
"like_count": integer,
"updated_at": timestamp,
"created_at": timestamp
},
"message": "登入成功"
}以管理員權限獲取全站的使用者
GET hostname/api/admin/users
刪除推文
DELETE hostname/api/admin/tweets/:id
Path Parameters
Name
Type
Description
id
String
推文ID
以管理員權限獲取全站的推文
GET hostname/api/admin/tweets
Last updated