Skip to content

Commit 962a555

Browse files
committed
CLAP-406 CI/CD: DevelopOnlyApi 어노테이션 적용 오류수정
<footer> - #524
1 parent 4746857 commit 962a555

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/main/java/clap/server/exception/code/GlobalErrorCode.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ public enum GlobalErrorCode implements BaseErrorCode {
1515
METHOD_ARGUMENT_NOT_VALID(HttpStatus.BAD_REQUEST, "COMMON_002", "올바르지 않은 요청입니다."),
1616
METHOD_NOT_ALLOWED(HttpStatus.METHOD_NOT_ALLOWED, "COMMON_005", "지원하지 않은 Http Method 입니다."),
1717
INTERNAL_SERVER_ERROR(HttpStatus.INTERNAL_SERVER_ERROR, "COMMON_006", "서버 에러가 발생했습니다."),
18+
BLOCKED_API(HttpStatus.METHOD_NOT_ALLOWED, "COMMON_007", "운영 환경에서 사용할 수 없는 API 입니다."),
1819
;
1920

2021
private final HttpStatus httpStatus;

src/main/resources/swagger.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,5 @@ springdoc:
3535
path: /swagger/v3/api-docs
3636

3737
---
38-
spring.config.activate.on-profile: prod
38+
spring.config.activate.on-profile: prod
39+
swagger.server.url: ${SWAGGER_SERVER_URL:http://localhost:8080}

0 commit comments

Comments
 (0)