Skip to content

API 명세서

Seunggyu Lee edited this page Nov 13, 2023 · 7 revisions
URL URI Method Description Request Body Response Body 비고 (Status Code 외)
/questions /questions/lists/:page GET 페이지 별 질문 리스트 [{ id, title, nickname, tag(문제 사이트), createdAt, programmingLanguage, isAdopted, viewCount, likeCount }, ...] 200, 404
/questions /questions/today GET 오늘의 질문 redirect(302)
/questions /questions/hot GET 급상승 질문 redirect(302)
/questions /questions POST 질문 등록 { title, content, tag, programmingLanguage, originalLink } 201, 400
/questions /questions/:questionId GET 단일 질문 보기 { id, title, nickname, tag(문제 사이트), createdAt, programmingLanguage, isAdopted, viewCount, likeCount, isLiked } 200, 404
/questions /questions/:questionId PUT 질문 수정 { title, content, tag, programmingLanguage, originalLink } 200, 400, 404
/questions /questions/:questionId DELETE 질문 삭제 채택 안 한 것만 삭제 가능
/questions /questions/draft POST 임시글 저장 { title, content, tag, programmingLanguage, originalLink } null 허용, 200
/questions /question/draft DELETE 임시글 삭제 200
/answers /answers/:questionId GET 질문별 답변 목록 [{ userId, nickname, answerId, content, videoLink, isAdopted, createdAt, isLiked }, ...] 200, 404
/answers /answers POST 답변 등록 { content, videoLink } 201, 400
/answers /answers/:answerId PUT 답변 수정 { content, videoLink } 200, 400, 404
/answers /answers/:answerId DELETE 답변 삭제 200, 400
/answers /answer/adopt POST 답변 채택 { questionId, answerId }
/answers /answers/draft POST 임시글 저장 { content, videoLink } null 허용, 200
/answers /answers/draft DELETE 임시글 삭제 200
/like /like POST 좋아요 { type: "question" 또는 "answer", id }

🌊 ALGOCEAN

TEAM : 강서(대문)구

기획

아키텍처

스프린트 계획회의

데일리스크럼

팀 회고

개발 일지

태호

more

지호

more

지은

more

승규

more

멘토링 일지

Clone this wiki locally