From fe0ffee48eb49e66b41cacca2b03b4f3cf47c016 Mon Sep 17 00:00:00 2001 From: Melvin Date: Tue, 7 Feb 2017 17:22:04 +0900 Subject: [PATCH] =?UTF-8?q?domain=20=EC=BB=B4=ED=8F=AC=EB=84=8C=ED=8A=B8?= =?UTF-8?q?=20=EA=B8=B0=EB=8A=A5=EC=B6=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pineone/icbms/so/domain/pr/DomainPresentation.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/so-domain/src/main/java/com/pineone/icbms/so/domain/pr/DomainPresentation.java b/so-domain/src/main/java/com/pineone/icbms/so/domain/pr/DomainPresentation.java index 6309c49b..f5252907 100644 --- a/so-domain/src/main/java/com/pineone/icbms/so/domain/pr/DomainPresentation.java +++ b/so-domain/src/main/java/com/pineone/icbms/so/domain/pr/DomainPresentation.java @@ -82,6 +82,16 @@ public Domain retrieveDomainByName(@PathVariable("name")String domainName){ Domain domain = domainLogic.retrieveDomainDetailByName(domainName); return domain; } + + //NOTE : Domain Name 으로 Domain 조회 + @RequestMapping(value = "/uri/{name}", method = RequestMethod.GET) + @ResponseStatus(value = HttpStatus.OK) + @ResponseBody + public String retrieveDomainUriByName(@PathVariable("name")String domainName){ + logger.info(LogPrint.inputInfoLogPrint()); + Domain domain = domainLogic.retrieveDomainDetailByName(domainName); + return domain.getUri(); + } }