메소드 |
경로 |
설명 |
GET |
/posts/detail/{postIdx} |
내가 작성한 게시글 자세히 보기 |
Request Header
{
"Content-Type": "application/json",
"token" : "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJTQU5HTEUiLCJ1c2VySWR4IjoyLCJleHAiOjE2MDQxMjgyMzJ9.ZIyE8yKyMZyxdE1QBMPYGlllPvWjVyWNosX-r4H7iDo"
}
{
"postIdx": 1,
"nickName": "d",
"myNickName": "d",
"topic": "미래",
"postWrite": "미래미래",
"date": "2020.10.03",
"time": "PM 03:00",
"day": "토",
"likes": 10,
"liked": true,
"modified": false,
"open": true
}
- postIdx: 글 인덱스
- topic: 글감
- nickName: 글 작성자 닉네임
- myNickName: 내 닉네임
- postWrite: 글 내용
- date: 작성 년도월일
- time: 작성 시간
- day: 작성 요일
- likes: 좋아요 개수
- liked: 이미 좋아요 눌렀으면 true, 안 눌렀으면 false
- modified: 수정여부 (true/false)
- open: 공개여부 (true/false)
- 메소드 에러 (405)
- 경로 에러 (404 or 400)