| Model | API | GET | POST | PUT | DELETE |
|---|---|---|---|---|---|
| api/ping/ | “pong” | ||||
| User | api/user/ | Get user list | X | X | X |
| api/user/signin/ | X | User sign in | X | X | |
| api/user/signup/ | X | User sign up | X | X | |
| api/user/signout/ | X | User sign out | X | X | |
| api/user/:user_id/ | Find user | X | X | X | |
| api/user/me/ | User me | X | X | X | |
| api/user/me/image/ | X | Upload image | X | X | |
| api/user/me/remove/ | X | X | X | Delete User | |
| api/user/me/edit/ | X | X | Edit User | X | |
| Social | oauth2/authorization/google | ||||
| Question | api/question/ | Get question list | Create a new question | X | X |
| api/question/:question_id/ | Get the specified question | X | Edit the specified question | Delete the specified question | |
| api/question/:question_id/answer/ | Get answers for the question | Create a new answer | X | X | |
| api/question/:question_id/comment/ | |||||
| Get extra comment list for the question | Create a new comment for the question | X | X | ||
| api/question/:question_id/vote/ | X | Vote for the specified question | X | X | |
| api/question/:question_id/:answer_id/accept/ | X | Accept the specified answer | X | X | |
| api/question/comment/:comment_id/ | X | X | Edit comment for the question | Delete comment for the question | |
| api/question/search/:keyword/ | Search questions by keyword | X | X | X | |
| Answer | api/answer/:answer_id/ | X | X | Edit the specified answer | Delete the specified answer |
| api/answer/:answer_id/comment/ | Get extra comment list for the specified answer | Create a new comment for the answer | X | X | |
| api/answer/:answer_id/vote/ | X | Vote for the specified answer | X | X | |
| api/answer/comment/:comment_id/ | X | X | Edit comment for the answer | Delete comment for the answer | |
User
Question
GET api/question/:question_id/
PUT api/question/:question_id/
DELETE api/question/:question_id/