Skip to content

Commit 449d315

Browse files
committed
docs: 응원, 스토리 등록 문서 일부 추가
1 parent a644eea commit 449d315

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/test/java/eatda/document/store/CheerDocumentTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ class RegisterCheer {
4747
- request body 예시
4848
```json
4949
{
50-
"storeKakaoId": "123", // 가게 카카오 ID
51-
"storeName": "농민백암순대 본점", // 가게 이름
52-
"description": "너무 맛있어요! 준환님 추천 맛집!" // 응원 내용
50+
"storeKakaoId": "123", // 가게 카카오 ID (필수)
51+
"storeName": "농민백암순대 본점", // 가게 이름 (필수)
52+
"description": "너무 맛있어요! 준환님 추천 맛집!" // 응원 내용 (필수)
5353
}
5454
```
5555
""";

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ class RegisterStory {
4141
- request body 예시
4242
```json
4343
{
44-
"storeKakaoId": "123", // 가게 카카오 ID
45-
"storeName": "농민백암순대 본점", // 가게 이름
46-
"description": "너무 맛있어요! 준환님 추천 맛집!" // 스토리 내용
44+
"storeKakaoId": "123", // 가게 카카오 ID (필수)
45+
"storeName": "농민백암순대 본점", // 가게 이름 (필수)
46+
"description": "너무 맛있어요! 준환님 추천 맛집!" // 스토리 내용 (null 허용)
4747
}
4848
```
4949
""";
@@ -60,7 +60,7 @@ class RegisterStory {
6060
).requestBodyField("request",
6161
fieldWithPath("storeName").description("가게 이름"),
6262
fieldWithPath("storeKakaoId").description("가게의 카카오 ID"),
63-
fieldWithPath("description").description("스토리 내용 (필수)")
63+
fieldWithPath("description").description("스토리 내용 (필수)").optional()
6464
);
6565

6666
RestDocsResponse responseDocument = response()

0 commit comments

Comments
 (0)