Skip to content

Commit 1013848

Browse files
authored
Merge pull request #59 from Dalguring/feature/page-serialization-mode
chore: 페이징 직렬화 모드 수정
2 parents 9745e3b + 0083bd7 commit 1013848

File tree

2 files changed

+25
-39
lines changed

2 files changed

+25
-39
lines changed

src/main/java/com/rentify/rentify_api/post/controller/PostApiDocs.java

Lines changed: 20 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -50,50 +50,31 @@ public interface PostApiDocs {
5050
"data": {
5151
"content": [
5252
{
53-
"categoryName": "갤럭시 울트라",
54-
"createAt": "2026-01-28T20:55:58.522954",
55-
"description": "테스트 수정 입니다",
53+
"categoryName": "DSLR",
54+
"createAt": "2026-02-01T15:49:40.686305",
55+
"description": "DSLR 800D 대여합니다.",
5656
"imageUrls": [
57-
"http://unirental.duckdns.org/images/6d82b234-6708-4875-ba60-80af76cc9e69.jpg",
58-
"http://unirental.duckdns.org/images/20689993-ef98-4919-b8e9-631448253749.jpg"
57+
"http://unirental.duckdns.org/images/dabdd601-72de-41b3-974d-f9e84f09a3dd.jpg",
58+
"http://unirental.duckdns.org/images/519a66a4-9927-4434-80ed-8e656fa4ed0a.jpg"
5959
],
6060
"isMeetup": true,
61-
"isParcel": true,
62-
"maxRentalDays": 20,
63-
"postId": 1,
64-
"pricePerDay": 52000,
65-
"status": "AVAILABLE",
66-
"title": "갤럭시 S25엣지 대여",
67-
"updateAt": "2026-01-29T20:45:03.049727",
68-
"userId": 1,
69-
"userName": "서성민"
61+
"isParcel": false,
62+
"maxRentalDays": 10,
63+
"postId": 3,
64+
"pricePerDay": 8000,
65+
"status": "RESERVED",
66+
"title": "DSLR 800D 대여",
67+
"updateAt": "2026-02-01T15:51:45.984886",
68+
"userId": 2,
69+
"userName": "서성민굴"
7070
}
7171
],
72-
"empty": false,
73-
"first": true,
74-
"last": true,
75-
"number": 0,
76-
"numberOfElements": 1,
77-
"pageable": {
78-
"offset": 0,
79-
"pageNumber": 0,
80-
"pageSize": 5,
81-
"paged": true,
82-
"sort": {
83-
"empty": false,
84-
"sorted": true,
85-
"unsorted": false
86-
},
87-
"unpaged": false
88-
},
89-
"size": 5,
90-
"sort": {
91-
"empty": false,
92-
"sorted": true,
93-
"unsorted": false
94-
},
95-
"totalElements": 1,
96-
"totalPages": 1
72+
"page": {
73+
"size": 10,
74+
"number": 0,
75+
"totalElements": 1,
76+
"totalPages": 1
77+
}
9778
}
9879
}
9980
"""

src/main/resources/application.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ spring:
22
application:
33
name: rentify-api
44

5+
data:
6+
web:
7+
pageable:
8+
serialization-mode: via_dto
9+
510
profiles:
611
active: local
712

0 commit comments

Comments
 (0)