OBP 연계 API 주소 변경

This commit is contained in:
Rinjae
2026-01-19 14:22:10 +09:00
parent 1affd1e6b7
commit d3fd28c837
7 changed files with 56 additions and 29 deletions
@@ -29,6 +29,8 @@ import java.nio.charset.StandardCharsets;
* }
* }
* </pre>
*
* TODO: API Key 또는 IP 화이트리스트 인증 기능 추가 고려
*/
public abstract class BaseRestController implements InterceptorSkipController {
@@ -8,6 +8,7 @@ import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
@@ -38,7 +39,7 @@ public class ObpApiController extends BaseRestController {
* @param pretty true면 JSON 들여쓰기 적용
* @return JSON Array
*/
@RequestMapping(value = "/api/apis/{providerCode}", produces = JSON_CONTENT_TYPE)
@RequestMapping(value = "/apis/{providerCode}", method = RequestMethod.GET, produces = JSON_CONTENT_TYPE)
@ResponseBody
public String getApisV2(
@PathVariable("providerCode") String providerCode,
@@ -80,7 +81,8 @@ public class ObpApiController extends BaseRestController {
* @return JSON Array (기관 미존재 시 빈 배열)
*/
@RequestMapping(
value = "/api/apis/{orgCode}/{providerCode}",
value = "/apis/{orgCode}/{providerCode}",
method = RequestMethod.GET,
produces = JSON_CONTENT_TYPE
)
@ResponseBody
@@ -9,6 +9,7 @@ import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
@@ -50,6 +51,7 @@ public class ObpGwMetricController extends BaseRestController {
*/
@RequestMapping(
value = "/api/metrics/afterTimeslice/{timeslice}/{providerCode}",
method = RequestMethod.GET,
produces = JSON_CONTENT_TYPE
)
@ResponseBody