Search
Duplicate

API λͺ…μ„Έ μ‹œμ—°μ˜μƒ

Search
이름
Method
URL
Request
Response
λΉ„κ³ 
POST
/users/signup
{ user_id_give: user_id, user_name_give: user_name, user_email_give: user_email, user_pw_give: user_pw }
νšŒμ›κ°€μž… 성곡 or νšŒμ›κ°€μž… μ‹€νŒ¨
μœ μ € 쀑볡 확인
POST
/users/login
{ input_id_give: input_id, input_pw_give: input_pw }
둜그인 성곡 or 둜그인 μ‹€νŒ¨
id, password 확인
PUT
/users/logout
{ input_id_give: input_id, input_pw_give: input_pw }
λ‘œκ·Έμ•„μ›ƒ 성곡 or λ‘œκ·Έμ•„μ›ƒ μ‹€νŒ¨
GET
/mypage/mypage_reload
/mypage/mypage_reload
contents, age, blog git 쑰회
GET
POST
/mypage/mypage_modal_reload /saveUserInfoInMyPage /saveCharacters
{ user_name_give: user_name, user_desc_give: user_desc, user_id_give: user_Id, user_pw_give: user_pw }
ν”„λ‘œν•„ μž‘μ„± 성곡 or ν”„λ‘œν•„ μž‘μ„± μ‹€νŒ¨
GET
/posts/{userId}
{ user_id_give: user_Id }
postId, title, contents, username, createDate 쑰회
졜근 κ²Œμ‹œλ¬Όμ΄ κ°€μž₯ μœ„λ‘œ 와야함
POST
/posts/userId}
{ posting_tittle_give: title, posting_contents_give: contents }
κ²Œμ‹œλ¬Ό μž‘μ„± 성곡 or κ²Œμ‹œλ¬Ό μž‘μ„± μ‹€νŒ¨
GET
/posts/{postId}
{ posting_id_give: postId }
title, contents 쑰회
κ²Œμ‹œλ¬Ό 쑴재 확인
PUT
/posts/{userId}/{postId}
{ user_id_give: userId, posting_id_give:postId, posting_title_give: title, posting_contents_give: contents }
κ²Œμ‹œλ¬Ό μˆ˜μ • 성곡 or κ²Œμ‹œλ¬Ό μˆ˜μ • μ‹€νŒ¨
κ²Œμ‹œλ¬Ό 쑴재 확인 및 μž‘μ„±μž 확인
DELETE
/posts/{userId}/{postId}
{ user_id_give: userId, posting_id_give: postId }
κ²Œμ‹œλ¬Ό μ‚­μ œ 성곡 or κ²Œμ‹œλ¬Ό μ‚­μ œ μ‹€νŒ¨
κ²Œμ‹œλ¬Ό 쑴재 확인 및 μž‘μ„±μž 확인
POST
/comments
{ posting_id_give: postId comments_text_give: text }
λŒ“κΈ€ 생성 성곡 or λŒ“κΈ€ 생성 μ‹€νŒ¨
κ²Œμ‹œλ¬Ό 쑴재 확인 ν›„ λŒ“κΈ€ 생성
GET
/comments/{commentId}
{ comments_id_give: commentId }
commentId, content 쑰회
λŒ“κΈ€μ‘΄μž¬ 확인
PUT
/comments/{commentId}
{ user_id_give: userId, comments_id_give: commentId, comments_text_give: text }
λŒ“κΈ€ μˆ˜μ • 성곡 or λŒ“κΈ€ μˆ˜μ • μ‹€νŒ¨
λŒ“κΈ€ 쑴재 확인 및 μž‘μ„±μž 확인
DELETE
{commentId}
{ user_id_give: userId, comments_id_give: commentId }
λŒ“κΈ€ μ‚­μ œ 성곡 or λŒ“κΈ€ μ‚­μ œ μ‹€νŒ¨
λŒ“κΈ€ 쑴재 확인 및 μž‘μ„±μž 확인