X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=policy-agent%2Fsrc%2Fmain%2Fjava%2Forg%2Foransc%2Fpolicyagent%2Fcontrollers%2FRicRepositoryController.java;h=797ec7196ac8e6c1adc518a7731d0631cbea64e4;hb=592ce20ec359928373de2e7f06214c8f8ad73c20;hp=175d5eb929f8c6dd1895863f498750983a25a8ef;hpb=bbc4aa48f60dc70154ff07c2143918053f1c9154;p=nonrtric.git diff --git a/policy-agent/src/main/java/org/oransc/policyagent/controllers/RicRepositoryController.java b/policy-agent/src/main/java/org/oransc/policyagent/controllers/RicRepositoryController.java index 175d5eb9..797ec719 100644 --- a/policy-agent/src/main/java/org/oransc/policyagent/controllers/RicRepositoryController.java +++ b/policy-agent/src/main/java/org/oransc/policyagent/controllers/RicRepositoryController.java @@ -22,6 +22,7 @@ package org.oransc.policyagent.controllers; import com.google.gson.Gson; import com.google.gson.GsonBuilder; + import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiResponse; @@ -63,7 +64,7 @@ public class RicRepositoryController { * Example: http://localhost:8080/rics?managedElementId=kista_1 */ @GetMapping("/ric") - @ApiOperation(value = "Returns the name of a RIC managing one Mananged Element") + @ApiOperation(value = "Returns the name of a RIC managing one Mananged Element", response = String.class) @ApiResponses( value = { // @ApiResponse(code = 200, message = "RIC is fond"), // @@ -86,10 +87,10 @@ public class RicRepositoryController { * Example: http://localhost:8080/ric */ @GetMapping("/rics") - @ApiOperation(value = "Returns defined NearRT RIC:s as Json") + @ApiOperation(value = "Returns defined NearRT RIC:s as Json", response = RicInfo.class) @ApiResponses( value = { // - @ApiResponse(code = 200, message = "OK") // + @ApiResponse(code = 200, message = "OK", response = RicInfo.class) // }) public ResponseEntity getRics( @RequestParam(name = "policyType", required = false) String supportingPolicyType) { @@ -98,7 +99,7 @@ public class RicRepositoryController { if (supportingPolicyType == null || ric.isSupportingType(supportingPolicyType)) { result.add(ImmutableRicInfo.builder() // .name(ric.name()) // - .nodeNames(ric.getManagedNodes()) // + .managedElementIds(ric.getManagedElementIds()) // .policyTypes(ric.getSupportedPolicyTypeNames()) // .build()); }