summaryrefslogtreecommitdiffstats
path: root/cps-rest/src/main/java
diff options
context:
space:
mode:
authorRishi.Chail <rishi.chail@est.tech>2021-01-22 15:05:03 +0000
committerRishi.Chail <rishi.chail@est.tech>2021-01-23 06:22:29 +0000
commit4be931a5d98df7b9adb88f70292d103f2c16080f (patch)
tree0cadb482c784e8fe6ff00f96fdc01940b5ce774c /cps-rest/src/main/java
parent850e3ecdecbedd30e65ae7cbaa81fc5301766f45 (diff)
Retrieve an Anchor for a given dataspace by anchor name - REST layer
Issue-ID: CPS-186 Signed-off-by: Rishi.Chail <rishi.chail@est.tech> Change-Id: I2dceb582c6277e56400dfbc46340c70d814603ee
Diffstat (limited to 'cps-rest/src/main/java')
-rwxr-xr-x[-rw-r--r--]cps-rest/src/main/java/org/onap/cps/rest/controller/AdminRestController.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/cps-rest/src/main/java/org/onap/cps/rest/controller/AdminRestController.java b/cps-rest/src/main/java/org/onap/cps/rest/controller/AdminRestController.java
index 1b6f56a211..0f8e041d0c 100644..100755
--- a/cps-rest/src/main/java/org/onap/cps/rest/controller/AdminRestController.java
+++ b/cps-rest/src/main/java/org/onap/cps/rest/controller/AdminRestController.java
@@ -102,7 +102,8 @@ public class AdminRestController implements CpsAdminApi {
@Override
public ResponseEntity<Object> getAnchor(final String dataspaceName, final String anchorName) {
- return null;
+ final Anchor anchor = cpsAdminService.getAnchor(dataspaceName, anchorName);
+ return new ResponseEntity<>(anchor, HttpStatus.OK);
}
@Override