Skip to content

Post Router

DongGyu Kim edited this page Mar 9, 2021 · 11 revisions
Description Method URI Headers Body Query
게시글 생성 POST /api/posts/ x-access-token title
description
is_public
user_id
image_id
category_id
게시글 수정 PUT /api/posts/:id x-access-token title
description
is_public
category_id
게시글 삭제 DELETE /api/posts/:id x-access-token
모든 게시글 최신순 불러오기 GET /api/posts/ page
limit
특정 게시글 불러오기 GET /api/posts/:id
메인 페이지 게시글 가져오기 GET /api/posts/main/:userid page
limit
유저 전체 게시글 불러오기 GET /api/posts/user/:id page
limit
카테고리별 게시글 가져오기 GET /api/posts/category/:id page
limit
해당 카테고리에 상속된 모든 게시글 가져오기 GET /api/posts/category/all/:id page
limit
현재 로그인한 사용자의 즐겨찾기 게시물 가져오기 (즐겨찾기 추가한 최신순) GET /api/posts/my/favorites x-access-token page
limit
펀딩중인 게시글 가져오기 GET /api/posts/funds/ongoing page
limit
펀딩 끝난 게시글 가져오기 GET /api/posts/funds/end page
limit

Default Value

  • page = 1
  • limit = 10

Clone this wiki locally