메소드 |
경로 |
설명 |
GET |
/posts/scrap |
내가 담은 글 목록 (최신순) |
GET |
/posts/scrap?filter="popular" |
내가 담은 글 목록 (인기순) |
Request Header
{
"Content-Type": "application/json",
"token" : "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJTQU5HTEUiLCJ1c2VySWR4IjoyMiwiZXhwIjoxNjA0MjExOTYzfQ.xUkHeX8NKa8GW2L_PX7-lyHoT2-eSSIvg2LrZ395vlI"
}
[
{
"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
}
]
- /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 : 수정여부
- 메소드 에러 (405)
- 경로 에러 (404 or 400)