Skip to content

Commit def7d0f

Browse files
committed
fix: '스토리 여러개 조회 API'에 문서에 누락된 쿼리 파라미터 추가
1 parent e9f5cd3 commit def7d0f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/test/java/eatda/document/story/StoryDocumentTest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import static org.mockito.Mockito.doThrow;
77
import static org.springframework.restdocs.headers.HeaderDocumentation.headerWithName;
88
import static org.springframework.restdocs.payload.PayloadDocumentation.fieldWithPath;
9+
import static org.springframework.restdocs.request.RequestDocumentation.parameterWithName;
910
import static org.springframework.restdocs.request.RequestDocumentation.partWithName;
1011

1112
import eatda.controller.story.StoriesResponse;
@@ -117,7 +118,10 @@ class GetStories {
117118
RestDocsRequest requestDocument = request()
118119
.tag(Tag.STORY_API)
119120
.summary("스토리 목록 조회")
120-
.description("스토리 목록을 페이지네이션하여 조회합니다.");
121+
.description("스토리 목록을 페이지네이션하여 조회합니다.")
122+
.queryParameter(
123+
parameterWithName("size").description("스토리 개수 (기본값: 5) (최소값: 1, 최대값: 50)").optional()
124+
);
121125

122126
RestDocsResponse responseDocument = response()
123127
.responseBodyField(

0 commit comments

Comments
 (0)