✔My서랍 담은 글감 검색 - SangleProject/Sangle GitHub Wiki

메소드 경로 설명
GET /main/searchScrapTopic?topic=#{topic} My서랍 담은 글감 검색

MY서랍 -  검색

Request Header

{
    "Content-Type": "application/json",
    "token" : "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJTQU5HTEUiLCJ1c2VySWR4IjoyLCJleHAiOjE2MDQxMjgyMzJ9.ZIyE8yKyMZyxdE1QBMPYGlllPvWjVyWNosX-r4H7iDo"
}

Request Params

{
    "topic": ""
}

Response

< Success >

  • 담은 글감이 있을 때
[
        {
            "postIdx": 1,
            "profileImg": "https://outsopt26.s3.ap-northeast-2.amazonaws.com/profile7.png",
            "nickName": "s",
            "topic": "미래",
            "postWrite": "미래미래",
            "date": "2020.09.03",
            "time": "PM 03:00",
            "day": "",
            "liked": true,
            "likes": 10,
            "isBan": false
        }
]
  • postIdx : 게시글 인덱스
  • nickName : 사용자 닉네임
  • profileImg : 사용자 프로필 이미지
  • topic : 글감
  • postWrite : 글 내용
  • date : 작성날짜
  • time : 작성시간
  • day : 작성요일
  • liked : 이미 좋아요 눌렀으면 true, 안 눌렀으면 false
  • likes : 좋아요 개수
  • isBan : 신고당함 숨김 여부

< Success >

  • 담은 글감이 없을 때

< Fail >

  • 토큰값이 없을 때 (400)
{
    "data": null
}
  • 권한 에러 (401)
{
    "data": null
}
  • 데이터베이스 에러 (600)
{
    "data": null
}
  • 서버 내부 에러 (500)
{
    "data": null
}
  • 메소드 에러 (405)
  • 경로 에러 (404 or 400)

⚠️ **GitHub.com Fallback** ⚠️