From da6579671b368f7800fb69856ef9ad86df22fe3f Mon Sep 17 00:00:00 2001 From: geneaky Date: Thu, 3 Oct 2024 14:24:50 +0900 Subject: [PATCH] =?UTF-8?q?revise:=20=EC=9C=A0=EC=A0=80=20=ED=94=84?= =?UTF-8?q?=EB=A1=9C=ED=95=84=20=EA=B8=B0=EB=B3=B8=EC=A1=B0=ED=9A=8C=20?= =?UTF-8?q?=EC=9D=91=EB=8B=B5=20=EC=9D=B4=EB=A9=94=EC=9D=BC=20=EC=82=AD?= =?UTF-8?q?=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/docs/asciidoc/index.html | 51 +++++++++---------- .../bookshelf/api/v1/BookShelfController.java | 2 +- .../api/v1/response/UserProfileResponse.java | 2 - .../bookchat/localtest/rest/user/UserAPI.http | 6 ++- .../domain/user/api/UserControllerTest.java | 1 - 5 files changed, 29 insertions(+), 33 deletions(-) diff --git a/src/docs/asciidoc/index.html b/src/docs/asciidoc/index.html index 0ee25ba0..a4cf90df 100644 --- a/src/docs/asciidoc/index.html +++ b/src/docs/asciidoc/index.html @@ -745,7 +745,7 @@

엑세스 토큰 재발급

Content-Length: 419 Host: bookchat.link -{"refreshToken":"eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJCb29rQ2hhdCIsImRlZmF1bHRQcm9maWxlSW1hZ2VUeXBlIjoxLCJwcm92aWRlciI6Imtha2FvIiwidXNlck5pY2tuYW1lIjoidGVzdFVzZXJOaWNrbmFtZSIsInVzZXJOYW1lIjoidGVzdFVzZXIiLCJ1c2VyUHJvZmlsZUltYWdlVXJpIjoic29tZXRoaW5nSW1hZ2VVcmxAbmF2ZXIuY29tIiwidXNlclJvbGUiOiJST0xFX1VTRVIiLCJleHAiOjE3MjcxODY4NjMsInVzZXJJZCI6IjEiLCJlbWFpbCI6InRlc3RAZ21haWwuY29tIn0.wHp1YknW_S6XECvgxeQHrVsLXxBOD3CCUPuBIEoGRdQ"} +{"refreshToken":"eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJCb29rQ2hhdCIsImRlZmF1bHRQcm9maWxlSW1hZ2VUeXBlIjoxLCJwcm92aWRlciI6Imtha2FvIiwidXNlck5pY2tuYW1lIjoidGVzdFVzZXJOaWNrbmFtZSIsInVzZXJOYW1lIjoidGVzdFVzZXIiLCJ1c2VyUHJvZmlsZUltYWdlVXJpIjoic29tZXRoaW5nSW1hZ2VVcmxAbmF2ZXIuY29tIiwidXNlclJvbGUiOiJST0xFX1VTRVIiLCJleHAiOjE3MjkxNDE5NTIsInVzZXJJZCI6IjEiLCJlbWFpbCI6InRlc3RAZ21haWwuY29tIn0.2sclW0lyHkKszb7NO8_5HHRZxrgJjTj6AuhmAzX7isM"}
@@ -790,7 +790,7 @@

엑세스 토큰 재발급

X-Frame-Options: DENY Content-Length: 836 -{"accessToken":"eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJCb29rQ2hhdCIsImRlZmF1bHRQcm9maWxlSW1hZ2VUeXBlIjoxLCJwcm92aWRlciI6Imtha2FvIiwidXNlck5pY2tuYW1lIjoidGVzdFVzZXJOaWNrbmFtZSIsInVzZXJOYW1lIjoidGVzdFVzZXIiLCJ1c2VyUHJvZmlsZUltYWdlVXJpIjoic29tZXRoaW5nSW1hZ2VVcmxAbmF2ZXIuY29tIiwidXNlclJvbGUiOiJST0xFX1VTRVIiLCJleHAiOjE3MjU5Nzg2NjMsInVzZXJJZCI6IjEiLCJlbWFpbCI6InRlc3RAZ21haWwuY29tIn0.8iobz-aMKEqS9kgmzrjiPS-wRfWjJ-Zx89_5CkoCv2k","refreshToken":"eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJCb29rQ2hhdCIsImRlZmF1bHRQcm9maWxlSW1hZ2VUeXBlIjoxLCJwcm92aWRlciI6Imtha2FvIiwidXNlck5pY2tuYW1lIjoidGVzdFVzZXJOaWNrbmFtZSIsInVzZXJOYW1lIjoidGVzdFVzZXIiLCJ1c2VyUHJvZmlsZUltYWdlVXJpIjoic29tZXRoaW5nSW1hZ2VVcmxAbmF2ZXIuY29tIiwidXNlclJvbGUiOiJST0xFX1VTRVIiLCJleHAiOjE3MjcxODY4NjMsInVzZXJJZCI6IjEiLCJlbWFpbCI6InRlc3RAZ21haWwuY29tIn0.wHp1YknW_S6XECvgxeQHrVsLXxBOD3CCUPuBIEoGRdQ"} +{"accessToken":"eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJCb29rQ2hhdCIsImRlZmF1bHRQcm9maWxlSW1hZ2VUeXBlIjoxLCJwcm92aWRlciI6Imtha2FvIiwidXNlck5pY2tuYW1lIjoidGVzdFVzZXJOaWNrbmFtZSIsInVzZXJOYW1lIjoidGVzdFVzZXIiLCJ1c2VyUHJvZmlsZUltYWdlVXJpIjoic29tZXRoaW5nSW1hZ2VVcmxAbmF2ZXIuY29tIiwidXNlclJvbGUiOiJST0xFX1VTRVIiLCJleHAiOjE3Mjc5MzM3NTIsInVzZXJJZCI6IjEiLCJlbWFpbCI6InRlc3RAZ21haWwuY29tIn0.fnXACyP01tsIoep5IfqhnkF4LHvbrvbIKr-ZT1fgais","refreshToken":"eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJCb29rQ2hhdCIsImRlZmF1bHRQcm9maWxlSW1hZ2VUeXBlIjoxLCJwcm92aWRlciI6Imtha2FvIiwidXNlck5pY2tuYW1lIjoidGVzdFVzZXJOaWNrbmFtZSIsInVzZXJOYW1lIjoidGVzdFVzZXIiLCJ1c2VyUHJvZmlsZUltYWdlVXJpIjoic29tZXRoaW5nSW1hZ2VVcmxAbmF2ZXIuY29tIiwidXNlclJvbGUiOiJST0xFX1VTRVIiLCJleHAiOjE3MjkxNDE5NTIsInVzZXJJZCI6IjEiLCJlbWFpbCI6InRlc3RAZ21haWwuY29tIn0.2sclW0lyHkKszb7NO8_5HHRZxrgJjTj6AuhmAzX7isM"}
@@ -860,11 +860,6 @@

사용자 기본 프로필 조회

닉네임

-

userEmail

-

String

-

이메일

- -

userProfileImageUri

String

프로필 사진 URI

@@ -887,9 +882,9 @@

사용자 기본 프로필 조회 +{"userId":1,"userNickname":"testUserNickname","userProfileImageUri":"somethingImageUrl@naver.com","defaultProfileImageType":1}
@@ -2172,7 +2167,7 @@

도서 단 건 조회

X-Frame-Options: DENY Content-Length: 246 -{"bookShelfId":12,"title":"effectiveJava","isbn":"124151214","bookCoverImageUrl":"bookCoverImage.com","publishAt":"2024-09-09","authors":["Joshua"],"publisher":"oreilly","star":"FOUR_HALF","pages":152,"lastUpdatedAt":"2024-09-09T23:36:38.301382"} +{"bookShelfId":12,"title":"effectiveJava","isbn":"124151214","bookCoverImageUrl":"bookCoverImage.com","publishAt":"2024-10-03","authors":["Joshua"],"publisher":"oreilly","star":"FOUR_HALF","pages":152,"lastUpdatedAt":"2024-10-03T14:06:20.370007"}
@@ -2269,7 +2264,7 @@

읽을 도서 등록

Content-Length: 204 Host: bookchat.link -{"bookRequest":{"isbn":"124151214","title":"effectiveJava","authors":["Joshua"],"publisher":"oreilly","bookCoverImageUrl":"bookCoverImage.com","publishAt":"2024-09-09"},"readingStatus":"WISH","star":null} +{"bookRequest":{"isbn":"124151214","title":"effectiveJava","authors":["Joshua"],"publisher":"oreilly","bookCoverImageUrl":"bookCoverImage.com","publishAt":"2024-10-03"},"readingStatus":"WISH","star":null}
@@ -2296,7 +2291,7 @@

읽을 도서 등록

HTTP/1.1 201 Created
-Location: /v1/api/bookshelves/456
+Location: /v1/api/456
 X-Content-Type-Options: nosniff
 X-XSS-Protection: 1; mode=block
 Cache-Control: no-cache, no-store, max-age=0, must-revalidate
@@ -2400,7 +2395,7 @@ 

읽고 있는 도서 등록

Content-Length: 207 Host: bookchat.link -{"bookRequest":{"isbn":"124151214","title":"effectiveJava","authors":["Joshua"],"publisher":"oreilly","bookCoverImageUrl":"bookCoverImage.com","publishAt":"2024-09-09"},"readingStatus":"READING","star":null}
+{"bookRequest":{"isbn":"124151214","title":"effectiveJava","authors":["Joshua"],"publisher":"oreilly","bookCoverImageUrl":"bookCoverImage.com","publishAt":"2024-10-03"},"readingStatus":"READING","star":null}
@@ -2427,7 +2422,7 @@

읽고 있는 도서 등록

HTTP/1.1 201 Created
-Location: /v1/api/bookshelves/456
+Location: /v1/api/456
 X-Content-Type-Options: nosniff
 X-XSS-Protection: 1; mode=block
 Cache-Control: no-cache, no-store, max-age=0, must-revalidate
@@ -2537,7 +2532,7 @@ 

읽은 도서 등록

Content-Length: 210 Host: bookchat.link -{"bookRequest":{"isbn":"124151214","title":"effectiveJava","authors":["Joshua"],"publisher":"oreilly","bookCoverImageUrl":"bookCoverImage.com","publishAt":"2024-09-09"},"readingStatus":"COMPLETE","star":"FOUR"}
+{"bookRequest":{"isbn":"124151214","title":"effectiveJava","authors":["Joshua"],"publisher":"oreilly","bookCoverImageUrl":"bookCoverImage.com","publishAt":"2024-10-03"},"readingStatus":"COMPLETE","star":"FOUR"}
@@ -2564,7 +2559,7 @@

읽은 도서 등록

HTTP/1.1 201 Created
-Location: /v1/api/bookshelves/456
+Location: /v1/api/456
 X-Content-Type-Options: nosniff
 X-XSS-Protection: 1; mode=block
 Cache-Control: no-cache, no-store, max-age=0, must-revalidate
@@ -2754,7 +2749,7 @@ 

읽을 도서 조회

-
{"pageMeta":{"totalElements":1,"totalPages":1,"pageSize":1,"pageNumber":0,"offset":0,"first":true,"last":true,"empty":false},"contents":[{"bookShelfId":1,"title":"effectiveJava","isbn":"12345","bookCoverImageUrl":"testBookCoverImageUrl","publishAt":"2024-09-09","authors":["joshua"],"publisher":"jpub","star":null,"pages":152,"lastUpdatedAt":"2024-09-09T23:36:38.089895"}]}
+
{"pageMeta":{"totalElements":1,"totalPages":1,"pageSize":1,"pageNumber":0,"offset":0,"first":true,"last":true,"empty":false},"contents":[{"bookShelfId":1,"title":"effectiveJava","isbn":"12345","bookCoverImageUrl":"testBookCoverImageUrl","publishAt":"2024-10-03","authors":["joshua"],"publisher":"jpub","star":null,"pages":152,"lastUpdatedAt":"2024-10-03T14:06:20.234971"}]}

@@ -2937,7 +2932,7 @@

읽고 있는 도서 조회

-
{"pageMeta":{"totalElements":1,"totalPages":1,"pageSize":1,"pageNumber":0,"offset":0,"first":true,"last":true,"empty":false},"contents":[{"bookShelfId":1,"title":"effectiveJava","isbn":"12345","bookCoverImageUrl":"testBookCoverImageUrl","publishAt":"2024-09-09","authors":["joshua"],"publisher":"jpub","star":null,"pages":152,"lastUpdatedAt":"2024-09-09T23:36:38.133698"}]}
+
{"pageMeta":{"totalElements":1,"totalPages":1,"pageSize":1,"pageNumber":0,"offset":0,"first":true,"last":true,"empty":false},"contents":[{"bookShelfId":1,"title":"effectiveJava","isbn":"12345","bookCoverImageUrl":"testBookCoverImageUrl","publishAt":"2024-10-03","authors":["joshua"],"publisher":"jpub","star":null,"pages":152,"lastUpdatedAt":"2024-10-03T14:06:20.26201"}]}

@@ -3120,7 +3115,7 @@

읽은 도서 조회

-
{"pageMeta":{"totalElements":1,"totalPages":1,"pageSize":1,"pageNumber":0,"offset":0,"first":true,"last":true,"empty":false},"contents":[{"bookShelfId":1,"title":"effectiveJava","isbn":"12345","bookCoverImageUrl":"testBookCoverImageUrl","publishAt":"2024-09-09","authors":["joshua"],"publisher":"jpub","star":"FOUR_HALF","pages":152,"lastUpdatedAt":"2024-09-09T23:36:37.677389"}]}
+
{"pageMeta":{"totalElements":1,"totalPages":1,"pageSize":1,"pageNumber":0,"offset":0,"first":true,"last":true,"empty":false},"contents":[{"bookShelfId":1,"title":"effectiveJava","isbn":"12345","bookCoverImageUrl":"testBookCoverImageUrl","publishAt":"2024-10-03","authors":["joshua"],"publisher":"jpub","star":"FOUR_HALF","pages":152,"lastUpdatedAt":"2024-10-03T14:06:19.977356"}]}

@@ -3177,7 +3172,7 @@

서재에 등록된 책 여부
-
GET /v1/api/bookshelves/book?isbn=1234567891011+0123456789&publishAt=2024-09-09 HTTP/1.1
+
GET /v1/api/bookshelves/book?isbn=1234567891011+0123456789&publishAt=2024-10-03 HTTP/1.1
 Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ0ZXN0IiwicHJvdmlkZXIiOiJnb29nbGUiLCJuYW1lIjoiZ29vZ2xlMTIzIiwiZW1haWwiOiJ0ZXN0QGdtYWlsLmNvbSJ9.LKub56oLOIJFlTzNiwxqH0V4SubOOBiIZESje9yJDco
 Host: bookchat.link
@@ -3911,7 +3906,7 @@

독후감 조회

X-Frame-Options: DENY Content-Length: 116 -{"reportTitle":"재미있네","reportContent":"다 읽은 후기 알려드립니다","reportCreatedAt":"2024-09-09"}

+{"reportTitle":"재미있네","reportContent":"다 읽은 후기 알려드립니다","reportCreatedAt":"2024-10-03"}

@@ -5280,7 +5275,7 @@

고민 기록 단 건 조회

X-Frame-Options: DENY Content-Length: 102 -{"agonyRecordId":1,"agonyRecordTitle":"title","agonyRecordContent":"content","createdAt":"2024-09-10"} +{"agonyRecordId":1,"agonyRecordTitle":"title","agonyRecordContent":"content","createdAt":"2024-10-03"}

@@ -5457,7 +5452,7 @@

고민 기록 조회

X-Frame-Options: DENY Content-Length: 360 -{"agonyRecordResponseList":[{"agonyRecordId":2,"agonyRecordTitle":"title1","agonyRecordContent":"content1","createdAt":"2024-09-10"},{"agonyRecordId":3,"agonyRecordTitle":"title2","agonyRecordContent":"content2","createdAt":"2024-09-10"}],"cursorMeta":{"sliceSize":2,"contentSize":2,"hasContent":true,"hasNext":false,"nextCursorId":3,"first":true,"last":true}} +{"agonyRecordResponseList":[{"agonyRecordId":2,"agonyRecordTitle":"title1","agonyRecordContent":"content1","createdAt":"2024-10-03"},{"agonyRecordId":3,"agonyRecordTitle":"title2","agonyRecordContent":"content2","createdAt":"2024-10-03"}],"cursorMeta":{"sliceSize":2,"contentSize":2,"hasContent":true,"hasNext":false,"nextCursorId":3,"first":true,"last":true}}
@@ -5804,7 +5799,7 @@

채팅방 생성

Content-Disposition: form-data; name=createChatRoomRequest Content-Type: application/json -{"roomName":"effective java 부수는 방","roomSize":5,"defaultRoomImageType":1,"hashTags":["Java","스터디"],"bookRequest":{"isbn":"124151214","title":"effective java","authors":["joshua"],"publisher":"insight","bookCoverImageUrl":"testImageUrl","publishAt":"2024-09-10"}} +{"roomName":"effective java 부수는 방","roomSize":5,"defaultRoomImageType":1,"hashTags":["Java","스터디"],"bookRequest":{"isbn":"124151214","title":"effective java","authors":["joshua"],"publisher":"insight","bookCoverImageUrl":"testImageUrl","publishAt":"2024-10-03"}} --6o2knFse3p53ty9dmcQvWAIx1zInP11uCfbm-- @@ -6255,7 +6250,7 @@

사용자 채팅방 조회

X-Frame-Options: DENY Content-Length: 2047 -{"userChatRoomResponseList":[{"roomId":1,"roomName":"이펙티브 자바 부수는 방","roomSid":"secret1","roomMemberCount":2,"defaultRoomImageType":1,"roomImageUri":null,"hostId":1,"hostNickname":"host 별명","hostProfileImageUrl":"host Profile Image Url","hostDefaultProfileImageType":1,"bookTitle":"effective java","bookCoverImageUrl":"effectivejava@s3.com","bookAuthors":["Joshua","JJU"],"senderId":1,"senderNickname":"sender Nickname","senderProfileImageUrl":"sender Profile Image Url","senderDefaultProfileImageType":3,"lastChatId":1,"lastChatContent":"이펙티브 자바 부수는 방 입니다.","lastChatDispatchTime":"2024-09-10T23:00:26.708221"},{"roomId":2,"roomName":"이펙티브 코틀린 부수는 방","roomSid":"secret2","roomMemberCount":2,"defaultRoomImageType":1,"roomImageUri":null,"hostId":1,"hostNickname":"host 별명","hostProfileImageUrl":"host Profile Image Url","hostDefaultProfileImageType":1,"bookTitle":"effective kotlin","bookCoverImageUrl":"effectivekotlin@s3.com","bookAuthors":["marcin mosckala"],"senderId":1,"senderNickname":"sender Nickname","senderProfileImageUrl":"sender Profile Image Url","senderDefaultProfileImageType":3,"lastChatId":2,"lastChatContent":"이펙티브 코틀린 부수는 방 입니다.","lastChatDispatchTime":"2024-09-10T23:00:26.708352"},{"roomId":3,"roomName":"토비의 스프링 부수는 방","roomSid":"secret3","roomMemberCount":2,"defaultRoomImageType":1,"roomImageUri":null,"hostId":1,"hostNickname":"host 별명","hostProfileImageUrl":"host Profile Image Url","hostDefaultProfileImageType":1,"bookTitle":"toby spring","bookCoverImageUrl":"tobyspring@s3.com","bookAuthors":["21min"],"senderId":1,"senderNickname":"sender Nickname","senderProfileImageUrl":"sender Profile Image Url","senderDefaultProfileImageType":3,"lastChatId":3,"lastChatContent":"토비의 스프링 부수는 방 입니다.","lastChatDispatchTime":"2024-09-10T23:00:26.708373"}],"cursorMeta":{"sliceSize":3,"contentSize":3,"hasContent":true,"hasNext":true,"nextCursorId":3,"first":true,"last":false}} +{"userChatRoomResponseList":[{"roomId":1,"roomName":"이펙티브 자바 부수는 방","roomSid":"secret1","roomMemberCount":2,"defaultRoomImageType":1,"roomImageUri":null,"hostId":1,"hostNickname":"host 별명","hostProfileImageUrl":"host Profile Image Url","hostDefaultProfileImageType":1,"bookTitle":"effective java","bookCoverImageUrl":"effectivejava@s3.com","bookAuthors":["Joshua","JJU"],"senderId":1,"senderNickname":"sender Nickname","senderProfileImageUrl":"sender Profile Image Url","senderDefaultProfileImageType":3,"lastChatId":1,"lastChatContent":"이펙티브 자바 부수는 방 입니다.","lastChatDispatchTime":"2024-10-03T14:05:47.945263"},{"roomId":2,"roomName":"이펙티브 코틀린 부수는 방","roomSid":"secret2","roomMemberCount":2,"defaultRoomImageType":1,"roomImageUri":null,"hostId":1,"hostNickname":"host 별명","hostProfileImageUrl":"host Profile Image Url","hostDefaultProfileImageType":1,"bookTitle":"effective kotlin","bookCoverImageUrl":"effectivekotlin@s3.com","bookAuthors":["marcin mosckala"],"senderId":1,"senderNickname":"sender Nickname","senderProfileImageUrl":"sender Profile Image Url","senderDefaultProfileImageType":3,"lastChatId":2,"lastChatContent":"이펙티브 코틀린 부수는 방 입니다.","lastChatDispatchTime":"2024-10-03T14:05:47.945288"},{"roomId":3,"roomName":"토비의 스프링 부수는 방","roomSid":"secret3","roomMemberCount":2,"defaultRoomImageType":1,"roomImageUri":null,"hostId":1,"hostNickname":"host 별명","hostProfileImageUrl":"host Profile Image Url","hostDefaultProfileImageType":1,"bookTitle":"toby spring","bookCoverImageUrl":"tobyspring@s3.com","bookAuthors":["21min"],"senderId":1,"senderNickname":"sender Nickname","senderProfileImageUrl":"sender Profile Image Url","senderDefaultProfileImageType":3,"lastChatId":3,"lastChatContent":"토비의 스프링 부수는 방 입니다.","lastChatDispatchTime":"2024-10-03T14:05:47.945292"}],"cursorMeta":{"sliceSize":3,"contentSize":3,"hasContent":true,"hasNext":true,"nextCursorId":3,"first":true,"last":false}}
@@ -6618,7 +6613,7 @@

전체 채팅방 조회

X-Frame-Options: DENY Content-Length: 1657 -{"chatRoomResponseList":[{"roomId":1,"roomName":"WLMRXZ","roomSid":"Dhb","bookTitle":"book1","bookCoverImageUri":"book1CoverImage@s3","bookAuthors":["author1","author2","author3"],"hostId":1,"hostName":"host1","hostDefaultProfileImageType":1,"hostProfileImageUri":"host1ProfileImage@s3","roomMemberCount":3,"roomSize":100,"defaultRoomImageType":1,"roomImageUri":"n8QpVmc","tags":"tag1,tag2,tag3","lastChatSenderId":1,"lastChatId":1,"lastChatMessage":"lastChatMessage","lastChatDispatchTime":"2024-09-10T23:00:24.044505"},{"roomId":2,"roomName":"R501","roomSid":"1vaaPp","bookTitle":"book2","bookCoverImageUri":"book2CoverImage@s3","bookAuthors":["author4","author5","author6"],"hostId":2,"hostName":"host2","hostDefaultProfileImageType":2,"hostProfileImageUri":"host2ProfileImage@s3","roomMemberCount":100,"roomSize":100,"defaultRoomImageType":3,"roomImageUri":"7jutu0i0","tags":"tag4,tag2,tag3","lastChatSenderId":3,"lastChatId":2,"lastChatMessage":"lastChatMessage2","lastChatDispatchTime":"2024-09-10T23:00:24.044958"},{"roomId":3,"roomName":"86H8735E","roomSid":"3YzLGXR7","bookTitle":"book3","bookCoverImageUri":"book3CoverImage@s3","bookAuthors":["author7","author8","author9"],"hostId":203,"hostName":"host3","hostDefaultProfileImageType":3,"hostProfileImageUri":"host3ProfileImage@s3","roomMemberCount":1000,"roomSize":3000,"defaultRoomImageType":2,"roomImageUri":"sUzZNOV","tags":"tag1,tag5,tag6","lastChatSenderId":8391,"lastChatId":4,"lastChatMessage":"lastChatMessage3","lastChatDispatchTime":"2024-09-10T23:00:24.045166"}],"cursorMeta":{"sliceSize":3,"contentSize":3,"hasContent":true,"hasNext":true,"nextCursorId":4,"first":true,"last":false}} +{"chatRoomResponseList":[{"roomId":1,"roomName":"WLMRXZ","roomSid":"Dhb","bookTitle":"book1","bookCoverImageUri":"book1CoverImage@s3","bookAuthors":["author1","author2","author3"],"hostId":1,"hostName":"host1","hostDefaultProfileImageType":1,"hostProfileImageUri":"host1ProfileImage@s3","roomMemberCount":3,"roomSize":100,"defaultRoomImageType":1,"roomImageUri":"n8QpVmc","tags":"tag1,tag2,tag3","lastChatSenderId":1,"lastChatId":1,"lastChatMessage":"lastChatMessage","lastChatDispatchTime":"2024-10-03T14:05:47.567684"},{"roomId":2,"roomName":"R501","roomSid":"1vaaPp","bookTitle":"book2","bookCoverImageUri":"book2CoverImage@s3","bookAuthors":["author4","author5","author6"],"hostId":2,"hostName":"host2","hostDefaultProfileImageType":2,"hostProfileImageUri":"host2ProfileImage@s3","roomMemberCount":100,"roomSize":100,"defaultRoomImageType":3,"roomImageUri":"7jutu0i0","tags":"tag4,tag2,tag3","lastChatSenderId":3,"lastChatId":2,"lastChatMessage":"lastChatMessage2","lastChatDispatchTime":"2024-10-03T14:05:47.567741"},{"roomId":3,"roomName":"86H8735E","roomSid":"3YzLGXR7","bookTitle":"book3","bookCoverImageUri":"book3CoverImage@s3","bookAuthors":["author7","author8","author9"],"hostId":203,"hostName":"host3","hostDefaultProfileImageType":3,"hostProfileImageUri":"host3ProfileImage@s3","roomMemberCount":1000,"roomSize":3000,"defaultRoomImageType":2,"roomImageUri":"sUzZNOV","tags":"tag1,tag5,tag6","lastChatSenderId":8391,"lastChatId":4,"lastChatMessage":"lastChatMessage3","lastChatDispatchTime":"2024-10-03T14:05:47.567758"}],"cursorMeta":{"sliceSize":3,"contentSize":3,"hasContent":true,"hasNext":true,"nextCursorId":4,"first":true,"last":false}}
@@ -7196,7 +7191,7 @@

FCM 응답 조회 : 채 X-Frame-Options: DENY Content-Length: 197 -{"chatId":1,"chatRoomId":1,"message":"first chat","dispatchTime":"2024-09-10T23:00:39.749432","sender":{"id":1,"nickname":"test","profileImageUrl":"test-image-url.com","defaultProfileImageType":1}} +{"chatId":1,"chatRoomId":1,"message":"first chat","dispatchTime":"2024-10-03T14:05:49.420572","sender":{"id":1,"nickname":"test","profileImageUrl":"test-image-url.com","defaultProfileImageType":1}}
@@ -7369,7 +7364,7 @@

채팅내역 조회

X-Frame-Options: DENY Content-Length: 420 -{"chatResponseList":[{"chatId":1,"senderId":1,"message":"first chat","dispatchTime":"2024-09-10T23:00:39.405832"},{"chatId":2,"senderId":2,"message":"second chat","dispatchTime":"2024-09-10T23:00:39.406038"},{"chatId":3,"senderId":3,"message":"welcome","dispatchTime":"2024-09-10T23:00:39.406058"}],"cursorMeta":{"sliceSize":3,"contentSize":3,"hasContent":true,"hasNext":true,"nextCursorId":3,"first":true,"last":false}} +{"chatResponseList":[{"chatId":1,"senderId":1,"message":"first chat","dispatchTime":"2024-10-03T14:05:49.317832"},{"chatId":2,"senderId":2,"message":"second chat","dispatchTime":"2024-10-03T14:05:49.317951"},{"chatId":3,"senderId":3,"message":"welcome","dispatchTime":"2024-10-03T14:05:49.317957"}],"cursorMeta":{"sliceSize":3,"contentSize":3,"hasContent":true,"hasNext":true,"nextCursorId":3,"first":true,"last":false}} diff --git a/src/main/java/toy/bookchat/bookchat/domain/bookshelf/api/v1/BookShelfController.java b/src/main/java/toy/bookchat/bookchat/domain/bookshelf/api/v1/BookShelfController.java index d1e716b8..d0cb71f5 100644 --- a/src/main/java/toy/bookchat/bookchat/domain/bookshelf/api/v1/BookShelfController.java +++ b/src/main/java/toy/bookchat/bookchat/domain/bookshelf/api/v1/BookShelfController.java @@ -50,7 +50,7 @@ public ResponseEntity putBookOnBookShelf(@Valid @RequestBody CreateBookShe createBookShelfRequest.getBook(), tokenPayload.getUserId()); return ResponseEntity.status(CREATED) - .headers(hs -> hs.setLocation(URI.create("/v1/api/" + bookShelfId))) + .headers(hs -> hs.setLocation(URI.create("/v1/api/bookshelves/" + bookShelfId))) .build(); } diff --git a/src/main/java/toy/bookchat/bookchat/domain/user/api/v1/response/UserProfileResponse.java b/src/main/java/toy/bookchat/bookchat/domain/user/api/v1/response/UserProfileResponse.java index c18e7743..315dedab 100644 --- a/src/main/java/toy/bookchat/bookchat/domain/user/api/v1/response/UserProfileResponse.java +++ b/src/main/java/toy/bookchat/bookchat/domain/user/api/v1/response/UserProfileResponse.java @@ -10,7 +10,6 @@ public class UserProfileResponse { private Long userId; private String userNickname; - private String userEmail; private String userProfileImageUri; private Integer defaultProfileImageType; @@ -18,7 +17,6 @@ public static UserProfileResponse of(User user) { return UserProfileResponse.builder() .userId(user.getId()) .userNickname(user.getNickname()) - .userEmail(user.getEmail()) .userProfileImageUri(user.getProfileImageUrl()) .defaultProfileImageType(user.getDefaultProfileImageType()) .build(); diff --git a/src/main/java/toy/bookchat/bookchat/localtest/rest/user/UserAPI.http b/src/main/java/toy/bookchat/bookchat/localtest/rest/user/UserAPI.http index 63da3007..e5cff89c 100644 --- a/src/main/java/toy/bookchat/bookchat/localtest/rest/user/UserAPI.http +++ b/src/main/java/toy/bookchat/bookchat/localtest/rest/user/UserAPI.http @@ -65,4 +65,8 @@ Content-Type: application/json ### 회원탈퇴 DELETE localhost:8080/v1/api/users -Authorization: {{jwt_token}} \ No newline at end of file +Authorization: {{jwt_token}} + +### 사용자 기본 프로필 조회 +GET localhost:8080/v1/api/users/profile +Authorization: {{jwt_token}} diff --git a/src/test/java/toy/bookchat/bookchat/domain/user/api/UserControllerTest.java b/src/test/java/toy/bookchat/bookchat/domain/user/api/UserControllerTest.java index c2aee9ad..07972b23 100644 --- a/src/test/java/toy/bookchat/bookchat/domain/user/api/UserControllerTest.java +++ b/src/test/java/toy/bookchat/bookchat/domain/user/api/UserControllerTest.java @@ -146,7 +146,6 @@ void userProfile() throws Exception { responseFields( fieldWithPath("userId").type(NUMBER).description("사용자 ID"), fieldWithPath("userNickname").type(STRING).description("닉네임"), - fieldWithPath("userEmail").type(STRING).description("이메일"), fieldWithPath("userProfileImageUri").type(STRING).description("프로필 사진 URI"), fieldWithPath("defaultProfileImageType").type(NUMBER).description("기본 이미지 타입") )));