X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=esr-mgr%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Faai%2Fesr%2Fresource%2FThirdpatySdncManager.java;h=18fd5d97d7b3fc2e028d7dedbd184caaa81bd1e6;hb=2c0e80cac349b7364d5b2b1f0b9650a4cd95ca18;hp=1a3095c9b99c5d4c883157cd680fc841cdabffb6;hpb=fa6dd60a45a093205ae55065f6de044c91493e60;p=aai%2Fesr-server.git diff --git a/esr-mgr/src/main/java/org/onap/aai/esr/resource/ThirdpatySdncManager.java b/esr-mgr/src/main/java/org/onap/aai/esr/resource/ThirdpatySdncManager.java index 1a3095c..18fd5d9 100644 --- a/esr-mgr/src/main/java/org/onap/aai/esr/resource/ThirdpatySdncManager.java +++ b/esr-mgr/src/main/java/org/onap/aai/esr/resource/ThirdpatySdncManager.java @@ -23,7 +23,7 @@ import io.swagger.annotations.ApiResponse; import io.swagger.annotations.ApiResponses; import org.eclipse.jetty.http.HttpStatus; -import org.onap.aai.esr.entity.rest.ThirdPartySdncRestData; +import org.onap.aai.esr.entity.rest.ThirdpartySdncRegisterInfo; import org.onap.aai.esr.util.ExtsysUtil; import org.onap.aai.esr.wrapper.ThirdpatySdncWrapper; import org.slf4j.Logger; @@ -49,7 +49,6 @@ public class ThirdpatySdncManager { /** *query all thirdParty sdnc. */ - @Path("") @GET @ApiOperation(value = "get all thirdParty sdnc ") @Produces(MediaType.APPLICATION_JSON) @@ -121,7 +120,7 @@ public class ThirdpatySdncManager { @ApiResponse(code = HttpStatus.INTERNAL_SERVER_ERROR_500, message = "internal server error", response = String.class)}) @Timed - public Response updateThirdpartySdnc(@ApiParam(value = "thirdpartySdnc", required = true) ThirdPartySdncRestData thirdPartySdnc, + public Response updateThirdpartySdnc(@ApiParam(value = "thirdpartySdnc", required = true) ThirdpartySdncRegisterInfo thirdPartySdnc, @ApiParam(value = "sdnc id", required = true) @PathParam("thirdPartySdncId") String thirdPartySdncId) { LOGGER.info("start update sdnc .id:" + thirdPartySdncId + " info:" + ExtsysUtil.objectToString(thirdPartySdnc)); return ThirdpatySdncWrapper.getInstance().updateThirdpartySdnc(thirdPartySdnc); @@ -131,7 +130,6 @@ public class ThirdpatySdncManager { *thirdParty sdnc register. */ @POST - @Path("") @Consumes(MediaType.APPLICATION_JSON) @Produces({MediaType.TEXT_PLAIN, MediaType.APPLICATION_JSON}) @ApiOperation(value = "register a thirdparty sdnc") @@ -143,7 +141,7 @@ public class ThirdpatySdncManager { @ApiResponse(code = HttpStatus.INTERNAL_SERVER_ERROR_500, message = "internal server error", response = String.class)}) @Timed - public Response registerThirdpatySdnc(@ApiParam(value = "thirdPartySdnc", required = true) ThirdPartySdncRestData thirdPartySdnc) { + public Response registerThirdpatySdnc(@ApiParam(value = "thirdPartySdnc", required = true) ThirdpartySdncRegisterInfo thirdPartySdnc) { LOGGER.info("start register sdnc" + " info:" + ExtsysUtil.objectToString(thirdPartySdnc)); return ThirdpatySdncWrapper.getInstance().registerThirdpartySdnc(thirdPartySdnc); }