Skip to content

Commit a064ae4

Browse files
authored
docs : warning 관련 응답 스웨거 설명 추가 (#115)
* docs : 읽지 않은 warning 있을 시 프론트에게 전달하는 응답 스웨거 추가 * docs : s3 설정 추가
1 parent edcc4bf commit a064ae4

2 files changed

Lines changed: 15 additions & 3 deletions

File tree

gotcha/src/main/java/Gotcha/domain/auth/api/AuthApi.java

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,17 @@ ResponseEntity<?> guestSignUp(@Valid @RequestBody SignUpReq signUpReq,
134134
content = @Content(mediaType = "application/json", examples = {
135135
@ExampleObject(name = "일반 로그인 성공", value = """
136136
{
137-
"expiredAt": "2025-04-10T06:57:45",
138-
"accessToken": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ0ZXN0QGdtYWlsLmNvbSIsInJvbGUiOiJVU0VSIiwidXNlcklkIjo1LCJpc3MiOiJnb3RjaGEhIiwiaWF0IjoxNzQ0MjY2NDY1LCJleHAiOjE3NDQyNjgyNjV9.u8RTE1VFsxZjQNB_dsc3ibSKqoHQGbC9-ppbOQUvzVY"
137+
"expiredAt": "2025-11-18T15:42:45",
138+
"warningDetails": {
139+
"id": 6,
140+
"targetUserName": "다06fn6",
141+
"adminUserName": "관리자",
142+
"sanctionType": "WARNING",
143+
"reason": "기타. 신고 기록을 참조하세요.",
144+
"expireDuration": 3,
145+
"createdAt": "2025-11-18T01:17:44.151774"
146+
},
147+
"accessToken": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiLri6QwNmZuNiIsInJvbGUiOiJVU0VSIiwidXVpZCI6InU1QTJzMmVlIiwiaXNzIjoiZ290Y2hhISIsImlhdCI6MTc2MzQ0NjM2NSwiZXhwIjoxNzYzNDQ4MTY1fQ.7NpE92scRRh8AyMvHrgeuTNL2LlUmYy0phuAL8Apg7w"
139148
}
140149
"""),
141150
@ExampleObject(name = "경고 메시지가 있는 로그인 성공", value = """

gotcha/src/main/resources/application.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
spring:
22
profiles:
33
active: ${SPRING_PROFILES_ACTIVE:dev}
4+
autoconfigure:
5+
exclude:
6+
- io.awspring.cloud.autoconfigure.s3.S3AutoConfiguration
47

58
jpa:
69
hibernate:
@@ -59,4 +62,4 @@ server:
5962
address: 0.0.0.0
6063

6164
ai-server:
62-
url: ${AI_SERVER_API:http://localhost:8000/api/v1/}
65+
url: ${AI_SERVER_API:http://localhost:8000/api/v1/}

0 commit comments

Comments
 (0)