Skip to content

Post Router

Seogeurim edited this page Aug 27, 2020 · 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 (default = 1)
limit (default = 10)
특정 게시글 불러오기 GET /api/posts/:id
유저 전체 게시글 불러오기 GET /api/posts/user/:id page (default = 1)
limit (default = 10)
카테고리별 게시글 가져오기 GET /api/posts/category/:id page (default = 1)
limit (default = 10)
해당 카테고리에 상속된 모든 게시글 가져오기 GET /api/posts/category/all/:id page (default = 1)
limit (default = 10)

Clone this wiki locally