Skip to content

2 7. 게시글 검색 조회

Donghoon Lee edited this page Nov 2, 2021 · 1 revision

게시글 검색 조회

메소드 경로 짧은 설명
GET http://ServerAddress:3000/post/search 게시글 검색 조회

Request querys

변수 타입 설명
"type" STRING 검색필터 종류
"content" STRING 검색어

Response 예시

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

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