✔내가 담은 글 목록 - SangleProject/Sangle GitHub Wiki

메소드 경로 설명
GET /posts/scrap 내가 담은 글 목록 (최신순)
GET /posts/scrap?filter="popular" 내가 담은 글 목록 (인기순)

MY서랍 -  담은글 인기순

Request Header

{
    "Content-Type": "application/json",
    "token" : "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJTQU5HTEUiLCJ1c2VySWR4IjoyMiwiZXhwIjoxNjA0MjExOTYzfQ.xUkHeX8NKa8GW2L_PX7-lyHoT2-eSSIvg2LrZ395vlI"
}

Response

< Success >

  • /posts/scrap 일 때, 최신순
[
        {
            "postIdx": 2,
            "profileImg": "https://outsopt26.s3.ap-northeast-2.amazonaws.com/profile7.png",
            "nickName": "s",
            "topic": "",
            "postWrite": "둥근해가 떴습니다~",
            "date": "2020.10.03",
            "time": "PM 02:00",
            "day": "",
            "likes": 10,
            "liked": true,
            "modified": false,
            "isBan": false
        },
        {
            "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": "",
            "likes": 200,
            "liked": true,
            "modified": false,
            "isBan": false
        }
]

< Success >

  • /posts/scrap?filter="popular" 일 때, 인기순
[
        {
            "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": "",
            "likes": 200,
            "liked": true,
            "modified": false,
            "isBan": false
        },
        {
            "postIdx": 2,
            "profileImg": "https://outsopt26.s3.ap-northeast-2.amazonaws.com/profile7.png",
            "nickName": "s",
            "topic": "",
            "postWrite": "둥근해가 떴습니다~",
            "date": "2020.10.03",
            "time": "PM 02:00",
            "day": "",
            "likes": 10,
            "liked": true,
            "modified": false,
            "isBan": false
        }
]
  • postIdx : 글 인덱스
  • profileImg : 프로필 이미지
  • nickName : 글 작성자 닉네임
  • topic : 글감
  • postWrite : 글 내용
  • date : 작성 년도월일
  • time : 작성 시간
  • day : 작성 요일
  • likes : 좋아요 수
  • liked : 이미 좋아요 눌렀으면 true, 안 눌렀으면 false
  • modified : 수정여부

< Fail >

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

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