👟
API 스펙 구현 진행
댓글 생성
일기 생성 완료
- 일기 생성시 각 사진에 대한 api 콜은 아래와 같습니다.
request
request-multipart
response
- 각 사진에 대한 api 콜이 완료된 이후에 최종적인 api 콜입니다.
request
Response
발생할 수 있는 예외
- title이 1부터 30글자안에 속하지 않을 때
- content가 null 또는 비어있을 때
- 사용자가 없을 때
- 앨범에 속한 인원이 아닐 때
- 앨범이 존재하지 않을 때
- 이미 일기가 존재할 때
이모지 생성
이 담당하게 되었습니다.
request
Response
일기 삭제
댓글 삭제
이모지 삭제
북마크
일기 수정
댓글 수정
이모지 수정
일기 조회
댓글 조회
이모지 조회
전체 데이터 조회
post : api/v1/albums/{albumId}/diaries/{diaryId}/comments
// Header
{
"Content-type" : "application/json",
"Authorization" : "Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdtiC_Ug0ngasdasdsadasdasdasd"
}
// Body
{
"commentContent" : "오늘 하루도 정말 극락이다..."
}
status code : 201
// Header
{
"Content-type" : "application/json"
}
// Body
{
"message": "CONTENT_CREATE_SUCCESS",
"serverDateTime": "2021-10-18",
"data": {
"diaryId" : 1,
"commentContent" : "멋진하루다잉~"
}
}
post : api/v1/images
// Header
{
"Content-type" : "multipart/form-data",
"Authorization" : "Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdtiC_Ug0ngasdasdsadasdasdasd"
}
// Body
FormData
{
"image": dbnet.png
}
status code 201
{
"message": "IMAGE_UPLOAD_SUCCESS",
"serverDateTime": "2021-12-14T01:46:11.6080123",
"data": {
"uploadImageUrl": "https://jungdam-image.s3.ap-northeast-2.amazonaws.com/temp/4676856e-b54d-48cc-96e4-50fd2f8f9e6c"
}
}
post : api/v1/albums/{albumId}/diaries
// Header
{
"Content-type" : "application/json",
"Authorization" : "Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdtiC_Ug0ngasdasdsadasdasdasd"
}
// Body
"diaryTitle" : "행복1111",
"diaryContent" : "행복해111라",
"diaryPhotos" : [
"https://jungdam-image.s3.ap-northeast-2.amazonaws.com/temp/4676856e-b54d-48cc-96e4-50fd2f8f9e6c",
"https://jungdam-image.s3.ap-northeast-2.amazonaws.com/temp/4676856e-b54d-48cc-96e4-50fd2f8f933c"
],
"recordedAt" : "2021-12-13"
}
status code : 201
// Header
{
"Content-type" : "application/json"
}
// Body
{
"message": "DIARY_CREATE_SUCCESS",
"serverDateTime": "2021-12-14T01:53:26.9522985",
"data": {
"albumId": 1,
"diaryId": 19
}
}
status code 400
{
"message": "INVALID_DIARY_TITLE",
"serverDateTime": "2021-12-14T01:57:28.75725"
}
status code 400
{
"message": "INVALID_DIARY_CONTENT",
"serverDateTime": "2021-12-14T01:57:28.75725"
}
status code 400
{
"message": "NOT_EXIST_MEMBER",
"serverDateTime": "2021-12-14T01:57:28.75725"
}
status code 400
{
"message": "NOT_EXIST_PARTICIPANT",
"serverDateTime": "2021-12-14T01:57:28.75725"
}
status code 400
{
"message": "NOT_EXIST_ALBUM",
"serverDateTime": "2021-12-14T01:57:28.75725"
}
status code 400
{
"message": "DUPLICATION_DIARY_RECORDED_AT",
"serverDateTime": "2021-12-14T01:57:28.75725"
}
post : api/v1/albums/{albumId}/diaries/{diaryId}/emojis
// Header
{
"Content-type" : "application/json",
"Authorization" : "Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdtiC_Ug0ngasdasdsadasdasdasd"
}
// Body
{
"emojiContent" : ":happy:"
}
status code : 201
// Header
{
"Content-type" : "application/json"
}
// Body
{
"message": "EMOJI_CREATE_SUCCESS",
"serverDateTime": "2021-10-18",
"data": {
"diaryId" : 1,
"emojiContent" : ":happy:"
}
}