method : POST
path : http://localhost:3001/user_no_auth/login
body : { UserId, UserPassword }
return success, token
method : POST
path : http://localhost:3001/user_no_auth/join
body : { UserId, UserPassword, Nickname }
return success, created user
method : GET
path : http://localhost:3001/user/
return success, user (authenticated with token)
method : GET
path : http://localhost:3001/user/:id
return success, nickname of user of id
method : PATCH
path : http://localhost:3001/user
body : { UserPassword, Nickname } ; at least one
return success, updated user (authenticated with token)
method : DELETE
path : http://localhost:3001/user
return success, deleted user (authenticated with token)
method : POST
path : http://localhost:3001/problem
body : { Title, Description, TestCase, Difficulty, Keyword } ; TestCast = [{Input : String, Output: String}]
return success, created problem
method : GET
path : http://localhost:3001/problem
query-string : { Title, Writer }
return success, problems
method : GET
path : http://localhost:3001/problem/:id
return success, problem
method : PATCH
path : http://localhost:3001/problem/:id
body : { Title, Description, TestCase } ; TestCast = [{Input : String, Output: String}] ; at least one
return success, updated problem
method : DELETE
path : http://localhost:3001/problem/:id
return success,deleted problem
method : POST
path : http://localhost:3001/post
body : { Title, Body }
return success, created post
method : GET
path : http://localhost:3001/post
query-string : { Title, Writer }
return success, posts
method : GET
path : http://localhost:3001/post/:id
return success, post
method : PATCH
path : http://localhost:3001/post/:id
return success, updated post
method : DELETE
path : http://localhost:3001/post/:id
return success, deleted post
method : POST
path : http://localhost:3001/comment
body : { Title, Body, RefPost, ToComment } ; ToComment is optional, RefPost and ToComment is _id of mongoDB document
return success, created comment
method : GET
path : http://localhost:3001/comment
query-string : { RefPost, ToComment, Writer }
return success, comments
method : PATCH
path : http://localhost:3001/comment/:id
body : { Title, Body } ; at least one
return success, updated comment
method : DELETE
path : http://localhost:3001/comment/:id
return success, deleted comment