From 3f51a8aba42c15ba84296b6477597499bec49322 Mon Sep 17 00:00:00 2001 From: Pamela Dragosh Date: Fri, 5 Apr 2019 14:10:33 -0400 Subject: Missed simulator REST call SDNC Forgot this as part of this review: https://gerrit.onap.org/r/#/c/84338/ Issue-ID: POLICY-1264 Change-Id: I8b95cd43b593fd9a79c62b3398a5d44bb7b0c794 Signed-off-by: Pamela Dragosh --- .../onap/policy/simulators/SdncSimulatorJaxRs.java | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'models-interactions/model-simulators/src/main/java') diff --git a/models-interactions/model-simulators/src/main/java/org/onap/policy/simulators/SdncSimulatorJaxRs.java b/models-interactions/model-simulators/src/main/java/org/onap/policy/simulators/SdncSimulatorJaxRs.java index 1b40ae486..72106ff52 100644 --- a/models-interactions/model-simulators/src/main/java/org/onap/policy/simulators/SdncSimulatorJaxRs.java +++ b/models-interactions/model-simulators/src/main/java/org/onap/policy/simulators/SdncSimulatorJaxRs.java @@ -56,4 +56,25 @@ public class SdncSimulatorJaxRs { response.setResponseOutput(responseOutput); return Serialization.gsonPretty.toJson(response); } + + + /** + * SDNC vnf topology operation. + * + * @return the response + */ + @POST + @Path("/GENERIC-RESOURCE-API:vnf-topology-operation") + @Consumes(MediaType.APPLICATION_JSON) + @Produces("application/json") + public String sdncVnfTopologyOperation() { + final SdncResponse response = new SdncResponse(); + response.setRequestId(UUID.randomUUID().toString()); + SdncResponseOutput responseOutput = new SdncResponseOutput(); + responseOutput.setResponseCode("200"); + responseOutput.setAckFinalIndicator("Y"); + responseOutput.setSvcRequestId(UUID.randomUUID().toString()); + response.setResponseOutput(responseOutput); + return Serialization.gsonPretty.toJson(response); + } } -- cgit 1.2.3-korg