feat: Implement native HTTP/2 Mock Server in Gateway
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
package io.shinhanlife.axhub.biz.mcp.gateway.controller;
|
||||
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import java.util.Map;
|
||||
|
||||
@RestController
|
||||
public class MciMockController {
|
||||
|
||||
@PostMapping("/mciSend")
|
||||
public Map<String, Object> mciSend() {
|
||||
return Map.of(
|
||||
"resCode", "0000",
|
||||
"resMsg", "정상 처리되었습니다.",
|
||||
"data", Map.of(
|
||||
"status", "SUCCESS",
|
||||
"mock", true,
|
||||
"protocol", "HTTP/2 (h2c)",
|
||||
"detail", "가짜 응답 서버(HTTP/2 WebFlux)에서 내려주는 대내(MCI) 샘플 데이터입니다."
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
@PostMapping("/extmci")
|
||||
public Map<String, Object> extmci() {
|
||||
return Map.of(
|
||||
"resCode", "0000",
|
||||
"resMsg", "정상 처리되었습니다.",
|
||||
"data", Map.of(
|
||||
"status", "SUCCESS",
|
||||
"mock", true,
|
||||
"protocol", "HTTP/2 (h2c)",
|
||||
"detail", "가짜 응답 서버(HTTP/2 WebFlux)에서 내려주는 대외(EXTMCI) 샘플 데이터입니다."
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
spring.application.name=axhub-admin
|
||||
server.port=8081
|
||||
server.http2.enabled=true
|
||||
|
||||
# 기본적으로 local 환경을 실행
|
||||
spring.profiles.active=local
|
||||
|
||||
Reference in New Issue
Block a user