메소드 |
경로 |
설명 |
GET |
/main/searchScrapTopic?topic=#{topic} |
My서랍 담은 글감 검색 |
Request Header
{
"Content-Type": "application/json",
"token" : "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJTQU5HTEUiLCJ1c2VySWR4IjoyLCJleHAiOjE2MDQxMjgyMzJ9.ZIyE8yKyMZyxdE1QBMPYGlllPvWjVyWNosX-r4H7iDo"
}
[
{
"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 : 신고당함 숨김 여부
- 메소드 에러 (405)
- 경로 에러 (404 or 400)