HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
🧚
[1기]최종 프로젝트 데브코스
/
👼
[팀2] 극락이들
/
👹
극훈
/
Diary 조회 api

Diary 조회 api

상태
완료
담당자

request header

GET : https://test-api.jungdam.tk/api/v1/albums/{albumId}/diaries/{diaryId} // Header { "Content-type" : "application/json", "Authorization" : "Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdtiC_Ug0ngasdasdsadasdasdasd" }

request body

없음

response header

status code : 200
status code : 200 // Header { "Content-type" : "application/json" }

response body

{ "message": "DIARY_READ_SUCCESS", "serverDateTime": "2021-12-14T16:22:22.4616192", "data": { "albumId": 1, "diaryId": 1, "title": "행복1111", "content": "행복해111라", "bookmark": false, "diaryPhotos": [ "askdjhaskdhjasjhdahsd", "sakjdfhkasdhfjksadhfkshdkf", "dksajfhfsdjhfksdhfshd" ], "recordedAt": "2021-12-12" } }
 
 

 

Error

발생할 수 있는 예외
  1. 사용자가 없을 때
    1. status code 400 { "message": "NOT_EXIST_MEMBER", "serverDateTime": "2021-12-14T01:57:28.75725" }
  1. 앨범에 속한 인원이 아닐 때
    1. status code 400 { "message": "NOT_EXIST_PARTICIPANT", "serverDateTime": "2021-12-14T01:57:28.75725" }
  1. 앨범이 존재하지 않을 때
    1. status code 400 { "message": "NOT_EXIST_ALBUM", "serverDateTime": "2021-12-14T01:57:28.75725" }
  1. 일기가 존재하지 않을 때
    1. status code 400 { "message": "NOT_EXIST_DIARY", "serverDateTime": "2021-12-14T01:57:28.75725" }