Index Feature HTTP Method Route Note
1 使用者註冊帳號 POST POST /api/users account, name, email, password
2 使用者登入 POST POST /api/users/signin need authentication
account, password
3 使用者可以看到自己的帳戶資料 GET GET /api/users/:id/setting need authentication
account, name, email, password
4 使用者可以編輯自己的帳戶資料 PATCH PATCH /api/users/:id/setting need authentication
account, name, email, password
5 使用者可以看到某使用者(包括自己)的個人資料 GET GET /api/users/:id need authentication
name, avatar, description, banner
6 使用者可以編輯自己的個人資料 PUT PUT /api/users/:id need authentication
name, avatar, description, banner
7 使用者可以看到某使用者(包括自己)的所有 tweets GET GET /api/users/:id/tweets need authentication
8 使用者看到某使用者(包括自己)回覆過的所有 tweets GET GET /api/users/:id/replied_tweets need authentication
9 使用者看到某使用者(包括自己)點擊過 like 的所有 tweets GET GET /api/users/:id/likes need authentication
10 使用者可以看到某使用者(包括自己)正在追蹤的人 GET GET /api/users/:id/followings need authentication
11 使用者(包括自己)可以看到某使用者被哪些人追蹤 GET GET /api/users/:id/followers need authentication
12 取得current user資訊 GET GET /api/get_current_user need authentication

1. 使用者註冊帳號:POST /api/users

2. 使用者登入:POST /api/users/signin

3. 使用者可以看到自己的帳戶資料:GET /api/users/:id/setting