Skip to content

2 6. 페이지별 게시글 목록 조회

Donghoon Lee edited this page Nov 2, 2021 · 4 revisions

페이지별 게시글 목록 조회

메소드 경로 짧은 설명
GET http://ServerAddress:3000/post/block/:page 페이지별 게시글 목록 조회

Request params

변수 타입 설명
"page" NUMBER 페이지 넘버

Response 예시

Success: 게시글 목록 조회 성공 (200)

[
  {
     "_id",
    "title",
    "content",
    "authorId",
    "category",
    "count",
    "createdAt",
    "updatedAt",
    "postId",
    "_v: 0
  },
  ....
]
> fail: 서버 내부 오류 (400) ``` { "요청이 잘못되었습니다. 재검토하고 재요청할 필요가 있습니다." } ```