diff options
author | 2021-02-01 15:50:32 +0000 | |
---|---|---|
committer | 2021-02-01 15:50:32 +0000 | |
commit | 3786f6394d8a973adba50bb5af3b459f0d296f93 (patch) | |
tree | f7ef147453029ed914f77958415da2cfa654c8c7 /cps-rest/src/main | |
parent | 30da8a9ea8f8f77ab5976097749caffbd16c4a93 (diff) | |
parent | 4be931a5d98df7b9adb88f70292d103f2c16080f (diff) |
Merge "Retrieve an Anchor for a given dataspace by anchor name - REST layer"
Diffstat (limited to 'cps-rest/src/main')
-rwxr-xr-x[-rw-r--r--] | cps-rest/src/main/java/org/onap/cps/rest/controller/AdminRestController.java | 3 |
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 1b6f56a21..0f8e041d0 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 |