From 3398b96f53bd1c5f9926a88db996abbbfe1da500 Mon Sep 17 00:00:00 2001 From: "saul.gill" Date: Wed, 27 Sep 2023 11:14:19 +0100 Subject: Fix swagger file links Issue-ID: POLICY-4829 Change-Id: I7d8f3ec6ff53eb63d35d5584e4289b07efe48880 Signed-off-by: saul.gill --- .../src/main/resources/application-stub.yaml | 2 +- .../examples/getCompositionInstanceResponse.json | 132 +++++++++++++++++ .../examples/getCompositionInstanceResponse.yaml | 108 ++++++++++++++ .../examples/getCompositionInstancesResponse.json | 132 ----------------- .../examples/getCompositionInstancesResponse.yaml | 108 -------------- .../examples/getMultiParticipantResponse.yaml | 156 --------------------- .../examples/getMultipleParticipantResponse.yaml | 156 +++++++++++++++++++++ .../examples/getSingleParticipantResponse.yaml | 136 ++++++++++++++++++ .../examples/getSingleparticipantResponse.yaml | 136 ------------------ .../openapi/examples/putAcInstanceStateUpdate.yaml | 1 + .../openapi/examples/putAcIntanceStateUpdate.yaml | 1 - .../src/main/resources/openapi/openapi.yaml | 10 +- 12 files changed, 539 insertions(+), 539 deletions(-) create mode 100755 runtime-acm/src/main/resources/openapi/examples/getCompositionInstanceResponse.json create mode 100755 runtime-acm/src/main/resources/openapi/examples/getCompositionInstanceResponse.yaml delete mode 100755 runtime-acm/src/main/resources/openapi/examples/getCompositionInstancesResponse.json delete mode 100755 runtime-acm/src/main/resources/openapi/examples/getCompositionInstancesResponse.yaml delete mode 100755 runtime-acm/src/main/resources/openapi/examples/getMultiParticipantResponse.yaml create mode 100755 runtime-acm/src/main/resources/openapi/examples/getMultipleParticipantResponse.yaml create mode 100755 runtime-acm/src/main/resources/openapi/examples/getSingleParticipantResponse.yaml delete mode 100755 runtime-acm/src/main/resources/openapi/examples/getSingleparticipantResponse.yaml create mode 100644 runtime-acm/src/main/resources/openapi/examples/putAcInstanceStateUpdate.yaml delete mode 100644 runtime-acm/src/main/resources/openapi/examples/putAcIntanceStateUpdate.yaml (limited to 'runtime-acm/src/main') diff --git a/runtime-acm/src/main/resources/application-stub.yaml b/runtime-acm/src/main/resources/application-stub.yaml index 3f519a23c..3737f4dc0 100644 --- a/runtime-acm/src/main/resources/application-stub.yaml +++ b/runtime-acm/src/main/resources/application-stub.yaml @@ -6,7 +6,7 @@ stub: deleteCompositionInstanceResponse: "/openapi/examples/deleteCompositionInstanceResponse.json" getAllCompositionDefinitions: "/openapi/examples/getAllCompositionDefinitions.json" getAllCompositionInstancesResponse: "/openapi/examples/getAllCompositionInstancesResponse.json" - getCompositionInstancesResponse: "/openapi/examples/getCompositionInstancesResponse.json" + getCompositionInstancesResponse: "/openapi/examples/getCompositionInstanceResponse.json" getSingleCompositionDefinition: "/openapi/examples/getSingleCompositionDefinition.json" getSingleParticipantResponse: "/openapi/examples/getSingleParticipantResponse.json" getMultipleParticipantResponse: "/openapi/examples/getMultipleParticipantResponse.json" diff --git a/runtime-acm/src/main/resources/openapi/examples/getCompositionInstanceResponse.json b/runtime-acm/src/main/resources/openapi/examples/getCompositionInstanceResponse.json new file mode 100755 index 000000000..8365fd21f --- /dev/null +++ b/runtime-acm/src/main/resources/openapi/examples/getCompositionInstanceResponse.json @@ -0,0 +1,132 @@ +{ + "instanceId": "caf50cde-11a2-4915-a49c-609762714a6f", + "compositionId": "562ed027-2689-481a-b3a5-e284b1fbc33f", + "deployState": "DEPLOYED", + "lockState": "LOCKED", + "elements": { + "709c62b3-8918-41b9-a747-d21eb79c6c23": { + "id": "709c62b3-8918-41b9-a747-d21eb79c6c23", + "definition": { + "name": "onap.policy.clamp.ac.element.Http_SinkAutomationCompositionElement", + "version": "1.2.3" + }, + "participantId": "101c62b3-8918-41b9-a747-d21eb79c6c91", + "deployState": "DEPLOYED", + "lockState": "LOCKED", + "description": "Sink Automation Composition Element for the Demo", + "message": "Deployed", + "properties": { + "baseUrl": "http://10.101.0.249:30802", + "httpHeaders": { + "Content-Type": "application/json", + "Authorization": "Basic YWNtVXNlcjp6YiFYenRHMzQ=" + }, + "configurationEntities": [ + { + "configurationEntityId": { + "name": "onap.policy.clamp.ac.sink", + "version": "1.0.0" + }, + "restSequence": [ + { + "restRequestId": { + "name": "request3", + "version": "1.0.1" + }, + "httpMethod": "POST", + "path": "/activate", + "body": "{ \"receiverId\": { \"name\": \"onap.policy.clamp.ac.sink\", \"version\": \"1.0.0\" }, \"timerMs\": 20000, \"elementType\": \"SINK\", \"topicParameterGroup\": { \"server\": \"message-router\", \"listenerTopic\": \"POLICY_UPDATE_MSG\", \"publisherTopic\": \"AC_ELEMENT_MSG\", \"fetchTimeout\": 15000, \"topicCommInfrastructure\": \"dmaap\" } }", + "expectedResponse": 201 + } + ] + } + ] + }, + "outProperties": {} + }, + "709c62b3-8918-41b9-a747-d21eb79c6c24": { + "id": "709c62b3-8918-41b9-a747-d21eb79c6c24", + "definition": { + "name": "onap.policy.clamp.ac.element.Http_StarterAutomationCompositionElement", + "version": "1.2.3" + }, + "participantId": "101c62b3-8918-41b9-a747-d21eb79c6c91", + "deployState": "DEPLOYED", + "lockState": "LOCKED", + "description": "Starter Automation Composition Element for the Demo", + "message": "Deployed", + "properties": { + "baseUrl": "http://10.101.0.249:30800", + "httpHeaders": { + "Content-Type": "application/json", + "Authorization": "Basic YWNtVXNlcjp6YiFYenRHMzQ=" + }, + "configurationEntities": [ + { + "configurationEntityId": { + "name": "onap.policy.clamp.ac.starter", + "version": "1.0.0" + }, + "restSequence": [ + { + "restRequestId": { + "name": "request1", + "version": "1.0.1" + }, + "httpMethod": "POST", + "path": "/activate", + "body": "{ \"receiverId\": { \"name\": \"onap.policy.clamp.ac.startertobridge\", \"version\": \"1.0.0\" }, \"timerMs\": 20000, \"elementType\": \"STARTER\", \"topicParameterGroup\": { \"server\": \"message-router:3904\", \"listenerTopic\": \"POLICY_UPDATE_MSG\", \"publisherTopic\": \"AC_ELEMENT_MSG\", \"fetchTimeout\": 15000, \"topicCommInfrastructure\": \"dmaap\" } }", + "expectedResponse": 201 + } + ] + } + ] + }, + "outProperties": {} + }, + "709c62b3-8918-41b9-a747-d21eb79c6c25": { + "id": "709c62b3-8918-41b9-a747-d21eb79c6c25", + "definition": { + "name": "onap.policy.clamp.ac.element.Http_BridgeAutomationCompositionElement", + "version": "1.2.3" + }, + "participantId": "101c62b3-8918-41b9-a747-d21eb79c6c91", + "deployState": "DEPLOYED", + "lockState": "LOCKED", + "description": "Bridge Automation Composition Element for the Demo", + "message": "Deployed", + "properties": { + "baseUrl": "http://10.101.0.249:30801", + "httpHeaders": { + "Content-Type": "application/json", + "Authorization": "Basic YWNtVXNlcjp6YiFYenRHMzQ=" + }, + "configurationEntities": [ + { + "configurationEntityId": { + "name": "onap.policy.clamp.ac.bridge", + "version": "1.0.0" + }, + "restSequence": [ + { + "restRequestId": { + "name": "request2", + "version": "1.0.1" + }, + "httpMethod": "POST", + "path": "/activate", + "body": "{ \"receiverId\": { \"name\": \"onap.policy.clamp.ac.bridgetosink\", \"version\": \"1.0.0\" }, \"timerMs\": 20000, \"elementType\": \"BRIDGE\", \"topicParameterGroup\": { \"server\": \"message-router:3904\", \"listenerTopic\": \"POLICY_UPDATE_MSG\", \"publisherTopic\": \"AC_ELEMENT_MSG\", \"fetchTimeout\": 15000, \"topicCommInfrastructure\": \"dmaap\" } }", + "expectedResponse": 201 + } + ] + } + ] + }, + "outProperties": {} + } + }, + "stateChangeResult": "NO_ERROR", + "name": "InstanceHttp", + "version": "1.0.1", + "description": "Demo automation composition instance Http" +} \ No newline at end of file diff --git a/runtime-acm/src/main/resources/openapi/examples/getCompositionInstanceResponse.yaml b/runtime-acm/src/main/resources/openapi/examples/getCompositionInstanceResponse.yaml new file mode 100755 index 000000000..2b962af9c --- /dev/null +++ b/runtime-acm/src/main/resources/openapi/examples/getCompositionInstanceResponse.yaml @@ -0,0 +1,108 @@ +instanceId: caf50cde-11a2-4915-a49c-609762714a6f +compositionId: 562ed027-2689-481a-b3a5-e284b1fbc33f +deployState: DEPLOYED +lockState: LOCKED +elements: + 709c62b3-8918-41b9-a747-d21eb79c6c23: + id: 709c62b3-8918-41b9-a747-d21eb79c6c23 + definition: + name: onap.policy.clamp.ac.element.Http_SinkAutomationCompositionElement + version: 1.2.3 + participantId: 101c62b3-8918-41b9-a747-d21eb79c6c91 + deployState: DEPLOYED + lockState: LOCKED + description: Sink Automation Composition Element for the Demo + message: Deployed + properties: + baseUrl: http://10.101.0.249:30802 + httpHeaders: + Content-Type: application/json + Authorization: Basic YWNtVXNlcjp6YiFYenRHMzQ= + configurationEntities: + - configurationEntityId: + name: onap.policy.clamp.ac.sink + version: 1.0.0 + restSequence: + - restRequestId: + name: request3 + version: 1.0.1 + httpMethod: POST + path: /activate + body: + '{ "receiverId": { "name": "onap.policy.clamp.ac.sink", "version": + "1.0.0" }, "timerMs": 20000, "elementType": "SINK", "topicParameterGroup": + { "server": "message-router", "listenerTopic": "POLICY_UPDATE_MSG", "publisherTopic": + "AC_ELEMENT_MSG", "fetchTimeout": 15000, "topicCommInfrastructure": "dmaap" + } }' + expectedResponse: 201 + outProperties: {} + 709c62b3-8918-41b9-a747-d21eb79c6c24: + id: 709c62b3-8918-41b9-a747-d21eb79c6c24 + definition: + name: onap.policy.clamp.ac.element.Http_StarterAutomationCompositionElement + version: 1.2.3 + participantId: 101c62b3-8918-41b9-a747-d21eb79c6c91 + deployState: DEPLOYED + lockState: LOCKED + description: Starter Automation Composition Element for the Demo + message: Deployed + properties: + baseUrl: http://10.101.0.249:30800 + httpHeaders: + Content-Type: application/json + Authorization: Basic YWNtVXNlcjp6YiFYenRHMzQ= + configurationEntities: + - configurationEntityId: + name: onap.policy.clamp.ac.starter + version: 1.0.0 + restSequence: + - restRequestId: + name: request1 + version: 1.0.1 + httpMethod: POST + path: /activate + body: + '{ "receiverId": { "name": "onap.policy.clamp.ac.startertobridge", + "version": "1.0.0" }, "timerMs": 20000, "elementType": "STARTER", "topicParameterGroup": + { "server": "message-router:3904", "listenerTopic": "POLICY_UPDATE_MSG", + "publisherTopic": "AC_ELEMENT_MSG", "fetchTimeout": 15000, "topicCommInfrastructure": + "dmaap" } }' + expectedResponse: 201 + outProperties: {} + 709c62b3-8918-41b9-a747-d21eb79c6c25: + id: 709c62b3-8918-41b9-a747-d21eb79c6c25 + definition: + name: onap.policy.clamp.ac.element.Http_BridgeAutomationCompositionElement + version: 1.2.3 + participantId: 101c62b3-8918-41b9-a747-d21eb79c6c91 + deployState: DEPLOYED + lockState: LOCKED + description: Bridge Automation Composition Element for the Demo + message: Deployed + properties: + baseUrl: http://10.101.0.249:30801 + httpHeaders: + Content-Type: application/json + Authorization: Basic YWNtVXNlcjp6YiFYenRHMzQ= + configurationEntities: + - configurationEntityId: + name: onap.policy.clamp.ac.bridge + version: 1.0.0 + restSequence: + - restRequestId: + name: request2 + version: 1.0.1 + httpMethod: POST + path: /activate + body: + '{ "receiverId": { "name": "onap.policy.clamp.ac.bridgetosink", "version": + "1.0.0" }, "timerMs": 20000, "elementType": "BRIDGE", "topicParameterGroup": + { "server": "message-router:3904", "listenerTopic": "POLICY_UPDATE_MSG", + "publisherTopic": "AC_ELEMENT_MSG", "fetchTimeout": 15000, "topicCommInfrastructure": + "dmaap" } }' + expectedResponse: 201 + outProperties: {} +stateChangeResult: NO_ERROR +name: InstanceHttp +version: 1.0.1 +description: Demo automation composition instance Http diff --git a/runtime-acm/src/main/resources/openapi/examples/getCompositionInstancesResponse.json b/runtime-acm/src/main/resources/openapi/examples/getCompositionInstancesResponse.json deleted file mode 100755 index 8365fd21f..000000000 --- a/runtime-acm/src/main/resources/openapi/examples/getCompositionInstancesResponse.json +++ /dev/null @@ -1,132 +0,0 @@ -{ - "instanceId": "caf50cde-11a2-4915-a49c-609762714a6f", - "compositionId": "562ed027-2689-481a-b3a5-e284b1fbc33f", - "deployState": "DEPLOYED", - "lockState": "LOCKED", - "elements": { - "709c62b3-8918-41b9-a747-d21eb79c6c23": { - "id": "709c62b3-8918-41b9-a747-d21eb79c6c23", - "definition": { - "name": "onap.policy.clamp.ac.element.Http_SinkAutomationCompositionElement", - "version": "1.2.3" - }, - "participantId": "101c62b3-8918-41b9-a747-d21eb79c6c91", - "deployState": "DEPLOYED", - "lockState": "LOCKED", - "description": "Sink Automation Composition Element for the Demo", - "message": "Deployed", - "properties": { - "baseUrl": "http://10.101.0.249:30802", - "httpHeaders": { - "Content-Type": "application/json", - "Authorization": "Basic YWNtVXNlcjp6YiFYenRHMzQ=" - }, - "configurationEntities": [ - { - "configurationEntityId": { - "name": "onap.policy.clamp.ac.sink", - "version": "1.0.0" - }, - "restSequence": [ - { - "restRequestId": { - "name": "request3", - "version": "1.0.1" - }, - "httpMethod": "POST", - "path": "/activate", - "body": "{ \"receiverId\": { \"name\": \"onap.policy.clamp.ac.sink\", \"version\": \"1.0.0\" }, \"timerMs\": 20000, \"elementType\": \"SINK\", \"topicParameterGroup\": { \"server\": \"message-router\", \"listenerTopic\": \"POLICY_UPDATE_MSG\", \"publisherTopic\": \"AC_ELEMENT_MSG\", \"fetchTimeout\": 15000, \"topicCommInfrastructure\": \"dmaap\" } }", - "expectedResponse": 201 - } - ] - } - ] - }, - "outProperties": {} - }, - "709c62b3-8918-41b9-a747-d21eb79c6c24": { - "id": "709c62b3-8918-41b9-a747-d21eb79c6c24", - "definition": { - "name": "onap.policy.clamp.ac.element.Http_StarterAutomationCompositionElement", - "version": "1.2.3" - }, - "participantId": "101c62b3-8918-41b9-a747-d21eb79c6c91", - "deployState": "DEPLOYED", - "lockState": "LOCKED", - "description": "Starter Automation Composition Element for the Demo", - "message": "Deployed", - "properties": { - "baseUrl": "http://10.101.0.249:30800", - "httpHeaders": { - "Content-Type": "application/json", - "Authorization": "Basic YWNtVXNlcjp6YiFYenRHMzQ=" - }, - "configurationEntities": [ - { - "configurationEntityId": { - "name": "onap.policy.clamp.ac.starter", - "version": "1.0.0" - }, - "restSequence": [ - { - "restRequestId": { - "name": "request1", - "version": "1.0.1" - }, - "httpMethod": "POST", - "path": "/activate", - "body": "{ \"receiverId\": { \"name\": \"onap.policy.clamp.ac.startertobridge\", \"version\": \"1.0.0\" }, \"timerMs\": 20000, \"elementType\": \"STARTER\", \"topicParameterGroup\": { \"server\": \"message-router:3904\", \"listenerTopic\": \"POLICY_UPDATE_MSG\", \"publisherTopic\": \"AC_ELEMENT_MSG\", \"fetchTimeout\": 15000, \"topicCommInfrastructure\": \"dmaap\" } }", - "expectedResponse": 201 - } - ] - } - ] - }, - "outProperties": {} - }, - "709c62b3-8918-41b9-a747-d21eb79c6c25": { - "id": "709c62b3-8918-41b9-a747-d21eb79c6c25", - "definition": { - "name": "onap.policy.clamp.ac.element.Http_BridgeAutomationCompositionElement", - "version": "1.2.3" - }, - "participantId": "101c62b3-8918-41b9-a747-d21eb79c6c91", - "deployState": "DEPLOYED", - "lockState": "LOCKED", - "description": "Bridge Automation Composition Element for the Demo", - "message": "Deployed", - "properties": { - "baseUrl": "http://10.101.0.249:30801", - "httpHeaders": { - "Content-Type": "application/json", - "Authorization": "Basic YWNtVXNlcjp6YiFYenRHMzQ=" - }, - "configurationEntities": [ - { - "configurationEntityId": { - "name": "onap.policy.clamp.ac.bridge", - "version": "1.0.0" - }, - "restSequence": [ - { - "restRequestId": { - "name": "request2", - "version": "1.0.1" - }, - "httpMethod": "POST", - "path": "/activate", - "body": "{ \"receiverId\": { \"name\": \"onap.policy.clamp.ac.bridgetosink\", \"version\": \"1.0.0\" }, \"timerMs\": 20000, \"elementType\": \"BRIDGE\", \"topicParameterGroup\": { \"server\": \"message-router:3904\", \"listenerTopic\": \"POLICY_UPDATE_MSG\", \"publisherTopic\": \"AC_ELEMENT_MSG\", \"fetchTimeout\": 15000, \"topicCommInfrastructure\": \"dmaap\" } }", - "expectedResponse": 201 - } - ] - } - ] - }, - "outProperties": {} - } - }, - "stateChangeResult": "NO_ERROR", - "name": "InstanceHttp", - "version": "1.0.1", - "description": "Demo automation composition instance Http" -} \ No newline at end of file diff --git a/runtime-acm/src/main/resources/openapi/examples/getCompositionInstancesResponse.yaml b/runtime-acm/src/main/resources/openapi/examples/getCompositionInstancesResponse.yaml deleted file mode 100755 index 2b962af9c..000000000 --- a/runtime-acm/src/main/resources/openapi/examples/getCompositionInstancesResponse.yaml +++ /dev/null @@ -1,108 +0,0 @@ -instanceId: caf50cde-11a2-4915-a49c-609762714a6f -compositionId: 562ed027-2689-481a-b3a5-e284b1fbc33f -deployState: DEPLOYED -lockState: LOCKED -elements: - 709c62b3-8918-41b9-a747-d21eb79c6c23: - id: 709c62b3-8918-41b9-a747-d21eb79c6c23 - definition: - name: onap.policy.clamp.ac.element.Http_SinkAutomationCompositionElement - version: 1.2.3 - participantId: 101c62b3-8918-41b9-a747-d21eb79c6c91 - deployState: DEPLOYED - lockState: LOCKED - description: Sink Automation Composition Element for the Demo - message: Deployed - properties: - baseUrl: http://10.101.0.249:30802 - httpHeaders: - Content-Type: application/json - Authorization: Basic YWNtVXNlcjp6YiFYenRHMzQ= - configurationEntities: - - configurationEntityId: - name: onap.policy.clamp.ac.sink - version: 1.0.0 - restSequence: - - restRequestId: - name: request3 - version: 1.0.1 - httpMethod: POST - path: /activate - body: - '{ "receiverId": { "name": "onap.policy.clamp.ac.sink", "version": - "1.0.0" }, "timerMs": 20000, "elementType": "SINK", "topicParameterGroup": - { "server": "message-router", "listenerTopic": "POLICY_UPDATE_MSG", "publisherTopic": - "AC_ELEMENT_MSG", "fetchTimeout": 15000, "topicCommInfrastructure": "dmaap" - } }' - expectedResponse: 201 - outProperties: {} - 709c62b3-8918-41b9-a747-d21eb79c6c24: - id: 709c62b3-8918-41b9-a747-d21eb79c6c24 - definition: - name: onap.policy.clamp.ac.element.Http_StarterAutomationCompositionElement - version: 1.2.3 - participantId: 101c62b3-8918-41b9-a747-d21eb79c6c91 - deployState: DEPLOYED - lockState: LOCKED - description: Starter Automation Composition Element for the Demo - message: Deployed - properties: - baseUrl: http://10.101.0.249:30800 - httpHeaders: - Content-Type: application/json - Authorization: Basic YWNtVXNlcjp6YiFYenRHMzQ= - configurationEntities: - - configurationEntityId: - name: onap.policy.clamp.ac.starter - version: 1.0.0 - restSequence: - - restRequestId: - name: request1 - version: 1.0.1 - httpMethod: POST - path: /activate - body: - '{ "receiverId": { "name": "onap.policy.clamp.ac.startertobridge", - "version": "1.0.0" }, "timerMs": 20000, "elementType": "STARTER", "topicParameterGroup": - { "server": "message-router:3904", "listenerTopic": "POLICY_UPDATE_MSG", - "publisherTopic": "AC_ELEMENT_MSG", "fetchTimeout": 15000, "topicCommInfrastructure": - "dmaap" } }' - expectedResponse: 201 - outProperties: {} - 709c62b3-8918-41b9-a747-d21eb79c6c25: - id: 709c62b3-8918-41b9-a747-d21eb79c6c25 - definition: - name: onap.policy.clamp.ac.element.Http_BridgeAutomationCompositionElement - version: 1.2.3 - participantId: 101c62b3-8918-41b9-a747-d21eb79c6c91 - deployState: DEPLOYED - lockState: LOCKED - description: Bridge Automation Composition Element for the Demo - message: Deployed - properties: - baseUrl: http://10.101.0.249:30801 - httpHeaders: - Content-Type: application/json - Authorization: Basic YWNtVXNlcjp6YiFYenRHMzQ= - configurationEntities: - - configurationEntityId: - name: onap.policy.clamp.ac.bridge - version: 1.0.0 - restSequence: - - restRequestId: - name: request2 - version: 1.0.1 - httpMethod: POST - path: /activate - body: - '{ "receiverId": { "name": "onap.policy.clamp.ac.bridgetosink", "version": - "1.0.0" }, "timerMs": 20000, "elementType": "BRIDGE", "topicParameterGroup": - { "server": "message-router:3904", "listenerTopic": "POLICY_UPDATE_MSG", - "publisherTopic": "AC_ELEMENT_MSG", "fetchTimeout": 15000, "topicCommInfrastructure": - "dmaap" } }' - expectedResponse: 201 - outProperties: {} -stateChangeResult: NO_ERROR -name: InstanceHttp -version: 1.0.1 -description: Demo automation composition instance Http diff --git a/runtime-acm/src/main/resources/openapi/examples/getMultiParticipantResponse.yaml b/runtime-acm/src/main/resources/openapi/examples/getMultiParticipantResponse.yaml deleted file mode 100755 index f0ed94bf4..000000000 --- a/runtime-acm/src/main/resources/openapi/examples/getMultiParticipantResponse.yaml +++ /dev/null @@ -1,156 +0,0 @@ -- participant: - participantId: 101c62b3-8918-41b9-a747-d21eb79c6c91 - participantState: ON_LINE - participantSupportedElementTypes: - 14c6d6d0-0fa2-4a7f-927a-afdab75e92c4: - id: 14c6d6d0-0fa2-4a7f-927a-afdab75e92c4 - typeName: org.onap.policy.clamp.acm.HttpAutomationCompositionElement - typeVersion: 1.0.0 - acNodeTemplateStateDefinitionMap: - d514b576-c091-4a2c-b797-99204e6dc620: - nodeTemplateStateId: d514b576-c091-4a2c-b797-99204e6dc620 - participantId: 101c62b3-8918-41b9-a747-d21eb79c6c91 - nodeTemplateId: - name: onap.policy.clamp.ac.element.Http_BridgeAutomationCompositionElement - version: 1.2.3 - state: PRIMED - message: Primed - outProperties: {} - 05773b12-9005-4166-bd03-caec308207e7: - nodeTemplateStateId: 05773b12-9005-4166-bd03-caec308207e7 - participantId: 101c62b3-8918-41b9-a747-d21eb79c6c91 - nodeTemplateId: - name: onap.policy.clamp.ac.element.Http_StarterAutomationCompositionElement - version: 1.2.3 - state: PRIMED - message: Primed - outProperties: {} - 363832a4-0281-4a69-8d37-99b4d48c5685: - nodeTemplateStateId: 363832a4-0281-4a69-8d37-99b4d48c5685 - participantId: 101c62b3-8918-41b9-a747-d21eb79c6c91 - nodeTemplateId: - name: onap.policy.clamp.ac.element.Http_SinkAutomationCompositionElement - version: 1.2.3 - state: PRIMED - message: Primed - outProperties: {} - acElementInstanceMap: - 709c62b3-8918-41b9-a747-d21eb79c6c23: - id: 709c62b3-8918-41b9-a747-d21eb79c6c23 - definition: - name: onap.policy.clamp.ac.element.Http_SinkAutomationCompositionElement - version: 1.2.3 - participantId: 101c62b3-8918-41b9-a747-d21eb79c6c91 - deployState: DEPLOYED - lockState: LOCKED - description: Sink Automation Composition Element for the Demo - message: Deployed - properties: - baseUrl: http://10.101.0.249:30802 - httpHeaders: - Content-Type: application/json - Authorization: Basic YWNtVXNlcjp6YiFYenRHMzQ= - configurationEntities: - - configurationEntityId: - name: onap.policy.clamp.ac.sink - version: 1.0.0 - restSequence: - - restRequestId: - name: request3 - version: 1.0.1 - httpMethod: POST - path: /activate - body: - '{ "receiverId": { "name": "onap.policy.clamp.ac.sink", "version": - "1.0.0" }, "timerMs": 20000, "elementType": "SINK", "topicParameterGroup": - { "server": "message-router", "listenerTopic": "POLICY_UPDATE_MSG", - "publisherTopic": "AC_ELEMENT_MSG", "fetchTimeout": 15000, "topicCommInfrastructure": - "dmaap" } }' - expectedResponse: 201 - outProperties: {} - 709c62b3-8918-41b9-a747-d21eb79c6c25: - id: 709c62b3-8918-41b9-a747-d21eb79c6c25 - definition: - name: onap.policy.clamp.ac.element.Http_BridgeAutomationCompositionElement - version: 1.2.3 - participantId: 101c62b3-8918-41b9-a747-d21eb79c6c91 - deployState: DEPLOYED - lockState: LOCKED - description: Bridge Automation Composition Element for the Demo - message: Deployed - properties: - baseUrl: http://10.101.0.249:30801 - httpHeaders: - Content-Type: application/json - Authorization: Basic YWNtVXNlcjp6YiFYenRHMzQ= - configurationEntities: - - configurationEntityId: - name: onap.policy.clamp.ac.bridge - version: 1.0.0 - restSequence: - - restRequestId: - name: request2 - version: 1.0.1 - httpMethod: POST - path: /activate - body: - '{ "receiverId": { "name": "onap.policy.clamp.ac.bridgetosink", - "version": "1.0.0" }, "timerMs": 20000, "elementType": "BRIDGE", "topicParameterGroup": - { "server": "message-router:3904", "listenerTopic": "POLICY_UPDATE_MSG", - "publisherTopic": "AC_ELEMENT_MSG", "fetchTimeout": 15000, "topicCommInfrastructure": - "dmaap" } }' - expectedResponse: 201 - outProperties: {} - 709c62b3-8918-41b9-a747-d21eb79c6c24: - id: 709c62b3-8918-41b9-a747-d21eb79c6c24 - definition: - name: onap.policy.clamp.ac.element.Http_StarterAutomationCompositionElement - version: 1.2.3 - participantId: 101c62b3-8918-41b9-a747-d21eb79c6c91 - deployState: DEPLOYED - lockState: LOCKED - description: Starter Automation Composition Element for the Demo - message: Deployed - properties: - baseUrl: http://10.101.0.249:30800 - httpHeaders: - Content-Type: application/json - Authorization: Basic YWNtVXNlcjp6YiFYenRHMzQ= - configurationEntities: - - configurationEntityId: - name: onap.policy.clamp.ac.starter - version: 1.0.0 - restSequence: - - restRequestId: - name: request1 - version: 1.0.1 - httpMethod: POST - path: /activate - body: - '{ "receiverId": { "name": "onap.policy.clamp.ac.startertobridge", - "version": "1.0.0" }, "timerMs": 20000, "elementType": "STARTER", "topicParameterGroup": - { "server": "message-router:3904", "listenerTopic": "POLICY_UPDATE_MSG", - "publisherTopic": "AC_ELEMENT_MSG", "fetchTimeout": 15000, "topicCommInfrastructure": - "dmaap" } }' - expectedResponse: 201 - outProperties: {} -- participant: - participantId: 101c62b3-8918-41b9-a747-d21eb79c6c92 - participantState: ON_LINE - participantSupportedElementTypes: - 110a2081-724a-4a15-b701-ff3c5cf741fa: - id: 110a2081-724a-4a15-b701-ff3c5cf741fa - typeName: org.onap.policy.clamp.acm.PolicyAutomationCompositionElement - typeVersion: 1.0.0 - acNodeTemplateStateDefinitionMap: {} - acElementInstanceMap: {} -- participant: - participantId: 101c62b3-8918-41b9-a747-d21eb79c6c93 - participantState: ON_LINE - participantSupportedElementTypes: - e7eb37db-af7a-4840-a626-d82845c4786f: - id: e7eb37db-af7a-4840-a626-d82845c4786f - typeName: org.onap.policy.clamp.acm.K8SMicroserviceAutomationCompositionElement - typeVersion: 1.0.0 - acNodeTemplateStateDefinitionMap: {} - acElementInstanceMap: {} diff --git a/runtime-acm/src/main/resources/openapi/examples/getMultipleParticipantResponse.yaml b/runtime-acm/src/main/resources/openapi/examples/getMultipleParticipantResponse.yaml new file mode 100755 index 000000000..f0ed94bf4 --- /dev/null +++ b/runtime-acm/src/main/resources/openapi/examples/getMultipleParticipantResponse.yaml @@ -0,0 +1,156 @@ +- participant: + participantId: 101c62b3-8918-41b9-a747-d21eb79c6c91 + participantState: ON_LINE + participantSupportedElementTypes: + 14c6d6d0-0fa2-4a7f-927a-afdab75e92c4: + id: 14c6d6d0-0fa2-4a7f-927a-afdab75e92c4 + typeName: org.onap.policy.clamp.acm.HttpAutomationCompositionElement + typeVersion: 1.0.0 + acNodeTemplateStateDefinitionMap: + d514b576-c091-4a2c-b797-99204e6dc620: + nodeTemplateStateId: d514b576-c091-4a2c-b797-99204e6dc620 + participantId: 101c62b3-8918-41b9-a747-d21eb79c6c91 + nodeTemplateId: + name: onap.policy.clamp.ac.element.Http_BridgeAutomationCompositionElement + version: 1.2.3 + state: PRIMED + message: Primed + outProperties: {} + 05773b12-9005-4166-bd03-caec308207e7: + nodeTemplateStateId: 05773b12-9005-4166-bd03-caec308207e7 + participantId: 101c62b3-8918-41b9-a747-d21eb79c6c91 + nodeTemplateId: + name: onap.policy.clamp.ac.element.Http_StarterAutomationCompositionElement + version: 1.2.3 + state: PRIMED + message: Primed + outProperties: {} + 363832a4-0281-4a69-8d37-99b4d48c5685: + nodeTemplateStateId: 363832a4-0281-4a69-8d37-99b4d48c5685 + participantId: 101c62b3-8918-41b9-a747-d21eb79c6c91 + nodeTemplateId: + name: onap.policy.clamp.ac.element.Http_SinkAutomationCompositionElement + version: 1.2.3 + state: PRIMED + message: Primed + outProperties: {} + acElementInstanceMap: + 709c62b3-8918-41b9-a747-d21eb79c6c23: + id: 709c62b3-8918-41b9-a747-d21eb79c6c23 + definition: + name: onap.policy.clamp.ac.element.Http_SinkAutomationCompositionElement + version: 1.2.3 + participantId: 101c62b3-8918-41b9-a747-d21eb79c6c91 + deployState: DEPLOYED + lockState: LOCKED + description: Sink Automation Composition Element for the Demo + message: Deployed + properties: + baseUrl: http://10.101.0.249:30802 + httpHeaders: + Content-Type: application/json + Authorization: Basic YWNtVXNlcjp6YiFYenRHMzQ= + configurationEntities: + - configurationEntityId: + name: onap.policy.clamp.ac.sink + version: 1.0.0 + restSequence: + - restRequestId: + name: request3 + version: 1.0.1 + httpMethod: POST + path: /activate + body: + '{ "receiverId": { "name": "onap.policy.clamp.ac.sink", "version": + "1.0.0" }, "timerMs": 20000, "elementType": "SINK", "topicParameterGroup": + { "server": "message-router", "listenerTopic": "POLICY_UPDATE_MSG", + "publisherTopic": "AC_ELEMENT_MSG", "fetchTimeout": 15000, "topicCommInfrastructure": + "dmaap" } }' + expectedResponse: 201 + outProperties: {} + 709c62b3-8918-41b9-a747-d21eb79c6c25: + id: 709c62b3-8918-41b9-a747-d21eb79c6c25 + definition: + name: onap.policy.clamp.ac.element.Http_BridgeAutomationCompositionElement + version: 1.2.3 + participantId: 101c62b3-8918-41b9-a747-d21eb79c6c91 + deployState: DEPLOYED + lockState: LOCKED + description: Bridge Automation Composition Element for the Demo + message: Deployed + properties: + baseUrl: http://10.101.0.249:30801 + httpHeaders: + Content-Type: application/json + Authorization: Basic YWNtVXNlcjp6YiFYenRHMzQ= + configurationEntities: + - configurationEntityId: + name: onap.policy.clamp.ac.bridge + version: 1.0.0 + restSequence: + - restRequestId: + name: request2 + version: 1.0.1 + httpMethod: POST + path: /activate + body: + '{ "receiverId": { "name": "onap.policy.clamp.ac.bridgetosink", + "version": "1.0.0" }, "timerMs": 20000, "elementType": "BRIDGE", "topicParameterGroup": + { "server": "message-router:3904", "listenerTopic": "POLICY_UPDATE_MSG", + "publisherTopic": "AC_ELEMENT_MSG", "fetchTimeout": 15000, "topicCommInfrastructure": + "dmaap" } }' + expectedResponse: 201 + outProperties: {} + 709c62b3-8918-41b9-a747-d21eb79c6c24: + id: 709c62b3-8918-41b9-a747-d21eb79c6c24 + definition: + name: onap.policy.clamp.ac.element.Http_StarterAutomationCompositionElement + version: 1.2.3 + participantId: 101c62b3-8918-41b9-a747-d21eb79c6c91 + deployState: DEPLOYED + lockState: LOCKED + description: Starter Automation Composition Element for the Demo + message: Deployed + properties: + baseUrl: http://10.101.0.249:30800 + httpHeaders: + Content-Type: application/json + Authorization: Basic YWNtVXNlcjp6YiFYenRHMzQ= + configurationEntities: + - configurationEntityId: + name: onap.policy.clamp.ac.starter + version: 1.0.0 + restSequence: + - restRequestId: + name: request1 + version: 1.0.1 + httpMethod: POST + path: /activate + body: + '{ "receiverId": { "name": "onap.policy.clamp.ac.startertobridge", + "version": "1.0.0" }, "timerMs": 20000, "elementType": "STARTER", "topicParameterGroup": + { "server": "message-router:3904", "listenerTopic": "POLICY_UPDATE_MSG", + "publisherTopic": "AC_ELEMENT_MSG", "fetchTimeout": 15000, "topicCommInfrastructure": + "dmaap" } }' + expectedResponse: 201 + outProperties: {} +- participant: + participantId: 101c62b3-8918-41b9-a747-d21eb79c6c92 + participantState: ON_LINE + participantSupportedElementTypes: + 110a2081-724a-4a15-b701-ff3c5cf741fa: + id: 110a2081-724a-4a15-b701-ff3c5cf741fa + typeName: org.onap.policy.clamp.acm.PolicyAutomationCompositionElement + typeVersion: 1.0.0 + acNodeTemplateStateDefinitionMap: {} + acElementInstanceMap: {} +- participant: + participantId: 101c62b3-8918-41b9-a747-d21eb79c6c93 + participantState: ON_LINE + participantSupportedElementTypes: + e7eb37db-af7a-4840-a626-d82845c4786f: + id: e7eb37db-af7a-4840-a626-d82845c4786f + typeName: org.onap.policy.clamp.acm.K8SMicroserviceAutomationCompositionElement + typeVersion: 1.0.0 + acNodeTemplateStateDefinitionMap: {} + acElementInstanceMap: {} diff --git a/runtime-acm/src/main/resources/openapi/examples/getSingleParticipantResponse.yaml b/runtime-acm/src/main/resources/openapi/examples/getSingleParticipantResponse.yaml new file mode 100755 index 000000000..c099f1115 --- /dev/null +++ b/runtime-acm/src/main/resources/openapi/examples/getSingleParticipantResponse.yaml @@ -0,0 +1,136 @@ +participant: + participantId: 101c62b3-8918-41b9-a747-d21eb79c6c91 + participantState: ON_LINE + participantSupportedElementTypes: + 14c6d6d0-0fa2-4a7f-927a-afdab75e92c4: + id: 14c6d6d0-0fa2-4a7f-927a-afdab75e92c4 + typeName: org.onap.policy.clamp.acm.HttpAutomationCompositionElement + typeVersion: 1.0.0 +acNodeTemplateStateDefinitionMap: + d514b576-c091-4a2c-b797-99204e6dc620: + nodeTemplateStateId: d514b576-c091-4a2c-b797-99204e6dc620 + participantId: 101c62b3-8918-41b9-a747-d21eb79c6c91 + nodeTemplateId: + name: onap.policy.clamp.ac.element.Http_BridgeAutomationCompositionElement + version: 1.2.3 + state: PRIMED + message: Primed + outProperties: {} + 05773b12-9005-4166-bd03-caec308207e7: + nodeTemplateStateId: 05773b12-9005-4166-bd03-caec308207e7 + participantId: 101c62b3-8918-41b9-a747-d21eb79c6c91 + nodeTemplateId: + name: onap.policy.clamp.ac.element.Http_StarterAutomationCompositionElement + version: 1.2.3 + state: PRIMED + message: Primed + outProperties: {} + 363832a4-0281-4a69-8d37-99b4d48c5685: + nodeTemplateStateId: 363832a4-0281-4a69-8d37-99b4d48c5685 + participantId: 101c62b3-8918-41b9-a747-d21eb79c6c91 + nodeTemplateId: + name: onap.policy.clamp.ac.element.Http_SinkAutomationCompositionElement + version: 1.2.3 + state: PRIMED + message: Primed + outProperties: {} +acElementInstanceMap: + 709c62b3-8918-41b9-a747-d21eb79c6c23: + id: 709c62b3-8918-41b9-a747-d21eb79c6c23 + definition: + name: onap.policy.clamp.ac.element.Http_SinkAutomationCompositionElement + version: 1.2.3 + participantId: 101c62b3-8918-41b9-a747-d21eb79c6c91 + deployState: DEPLOYED + lockState: LOCKED + description: Sink Automation Composition Element for the Demo + message: Deployed + properties: + baseUrl: http://10.101.0.249:30802 + httpHeaders: + Content-Type: application/json + Authorization: Basic YWNtVXNlcjp6YiFYenRHMzQ= + configurationEntities: + - configurationEntityId: + name: onap.policy.clamp.ac.sink + version: 1.0.0 + restSequence: + - restRequestId: + name: request3 + version: 1.0.1 + httpMethod: POST + path: /activate + body: + '{ "receiverId": { "name": "onap.policy.clamp.ac.sink", "version": + "1.0.0" }, "timerMs": 20000, "elementType": "SINK", "topicParameterGroup": + { "server": "message-router", "listenerTopic": "POLICY_UPDATE_MSG", "publisherTopic": + "AC_ELEMENT_MSG", "fetchTimeout": 15000, "topicCommInfrastructure": "dmaap" + } }' + expectedResponse: 201 + outProperties: {} + 709c62b3-8918-41b9-a747-d21eb79c6c25: + id: 709c62b3-8918-41b9-a747-d21eb79c6c25 + definition: + name: onap.policy.clamp.ac.element.Http_BridgeAutomationCompositionElement + version: 1.2.3 + participantId: 101c62b3-8918-41b9-a747-d21eb79c6c91 + deployState: DEPLOYED + lockState: LOCKED + description: Bridge Automation Composition Element for the Demo + message: Deployed + properties: + baseUrl: http://10.101.0.249:30801 + httpHeaders: + Content-Type: application/json + Authorization: Basic YWNtVXNlcjp6YiFYenRHMzQ= + configurationEntities: + - configurationEntityId: + name: onap.policy.clamp.ac.bridge + version: 1.0.0 + restSequence: + - restRequestId: + name: request2 + version: 1.0.1 + httpMethod: POST + path: /activate + body: + '{ "receiverId": { "name": "onap.policy.clamp.ac.bridgetosink", "version": + "1.0.0" }, "timerMs": 20000, "elementType": "BRIDGE", "topicParameterGroup": + { "server": "message-router:3904", "listenerTopic": "POLICY_UPDATE_MSG", + "publisherTopic": "AC_ELEMENT_MSG", "fetchTimeout": 15000, "topicCommInfrastructure": + "dmaap" } }' + expectedResponse: 201 + outProperties: {} + 709c62b3-8918-41b9-a747-d21eb79c6c24: + id: 709c62b3-8918-41b9-a747-d21eb79c6c24 + definition: + name: onap.policy.clamp.ac.element.Http_StarterAutomationCompositionElement + version: 1.2.3 + participantId: 101c62b3-8918-41b9-a747-d21eb79c6c91 + deployState: DEPLOYED + lockState: LOCKED + description: Starter Automation Composition Element for the Demo + message: Deployed + properties: + baseUrl: http://10.101.0.249:30800 + httpHeaders: + Content-Type: application/json + Authorization: Basic YWNtVXNlcjp6YiFYenRHMzQ= + configurationEntities: + - configurationEntityId: + name: onap.policy.clamp.ac.starter + version: 1.0.0 + restSequence: + - restRequestId: + name: request1 + version: 1.0.1 + httpMethod: POST + path: /activate + body: + '{ "receiverId": { "name": "onap.policy.clamp.ac.startertobridge", + "version": "1.0.0" }, "timerMs": 20000, "elementType": "STARTER", "topicParameterGroup": + { "server": "message-router:3904", "listenerTopic": "POLICY_UPDATE_MSG", + "publisherTopic": "AC_ELEMENT_MSG", "fetchTimeout": 15000, "topicCommInfrastructure": + "dmaap" } }' + expectedResponse: 201 + outProperties: {} diff --git a/runtime-acm/src/main/resources/openapi/examples/getSingleparticipantResponse.yaml b/runtime-acm/src/main/resources/openapi/examples/getSingleparticipantResponse.yaml deleted file mode 100755 index c099f1115..000000000 --- a/runtime-acm/src/main/resources/openapi/examples/getSingleparticipantResponse.yaml +++ /dev/null @@ -1,136 +0,0 @@ -participant: - participantId: 101c62b3-8918-41b9-a747-d21eb79c6c91 - participantState: ON_LINE - participantSupportedElementTypes: - 14c6d6d0-0fa2-4a7f-927a-afdab75e92c4: - id: 14c6d6d0-0fa2-4a7f-927a-afdab75e92c4 - typeName: org.onap.policy.clamp.acm.HttpAutomationCompositionElement - typeVersion: 1.0.0 -acNodeTemplateStateDefinitionMap: - d514b576-c091-4a2c-b797-99204e6dc620: - nodeTemplateStateId: d514b576-c091-4a2c-b797-99204e6dc620 - participantId: 101c62b3-8918-41b9-a747-d21eb79c6c91 - nodeTemplateId: - name: onap.policy.clamp.ac.element.Http_BridgeAutomationCompositionElement - version: 1.2.3 - state: PRIMED - message: Primed - outProperties: {} - 05773b12-9005-4166-bd03-caec308207e7: - nodeTemplateStateId: 05773b12-9005-4166-bd03-caec308207e7 - participantId: 101c62b3-8918-41b9-a747-d21eb79c6c91 - nodeTemplateId: - name: onap.policy.clamp.ac.element.Http_StarterAutomationCompositionElement - version: 1.2.3 - state: PRIMED - message: Primed - outProperties: {} - 363832a4-0281-4a69-8d37-99b4d48c5685: - nodeTemplateStateId: 363832a4-0281-4a69-8d37-99b4d48c5685 - participantId: 101c62b3-8918-41b9-a747-d21eb79c6c91 - nodeTemplateId: - name: onap.policy.clamp.ac.element.Http_SinkAutomationCompositionElement - version: 1.2.3 - state: PRIMED - message: Primed - outProperties: {} -acElementInstanceMap: - 709c62b3-8918-41b9-a747-d21eb79c6c23: - id: 709c62b3-8918-41b9-a747-d21eb79c6c23 - definition: - name: onap.policy.clamp.ac.element.Http_SinkAutomationCompositionElement - version: 1.2.3 - participantId: 101c62b3-8918-41b9-a747-d21eb79c6c91 - deployState: DEPLOYED - lockState: LOCKED - description: Sink Automation Composition Element for the Demo - message: Deployed - properties: - baseUrl: http://10.101.0.249:30802 - httpHeaders: - Content-Type: application/json - Authorization: Basic YWNtVXNlcjp6YiFYenRHMzQ= - configurationEntities: - - configurationEntityId: - name: onap.policy.clamp.ac.sink - version: 1.0.0 - restSequence: - - restRequestId: - name: request3 - version: 1.0.1 - httpMethod: POST - path: /activate - body: - '{ "receiverId": { "name": "onap.policy.clamp.ac.sink", "version": - "1.0.0" }, "timerMs": 20000, "elementType": "SINK", "topicParameterGroup": - { "server": "message-router", "listenerTopic": "POLICY_UPDATE_MSG", "publisherTopic": - "AC_ELEMENT_MSG", "fetchTimeout": 15000, "topicCommInfrastructure": "dmaap" - } }' - expectedResponse: 201 - outProperties: {} - 709c62b3-8918-41b9-a747-d21eb79c6c25: - id: 709c62b3-8918-41b9-a747-d21eb79c6c25 - definition: - name: onap.policy.clamp.ac.element.Http_BridgeAutomationCompositionElement - version: 1.2.3 - participantId: 101c62b3-8918-41b9-a747-d21eb79c6c91 - deployState: DEPLOYED - lockState: LOCKED - description: Bridge Automation Composition Element for the Demo - message: Deployed - properties: - baseUrl: http://10.101.0.249:30801 - httpHeaders: - Content-Type: application/json - Authorization: Basic YWNtVXNlcjp6YiFYenRHMzQ= - configurationEntities: - - configurationEntityId: - name: onap.policy.clamp.ac.bridge - version: 1.0.0 - restSequence: - - restRequestId: - name: request2 - version: 1.0.1 - httpMethod: POST - path: /activate - body: - '{ "receiverId": { "name": "onap.policy.clamp.ac.bridgetosink", "version": - "1.0.0" }, "timerMs": 20000, "elementType": "BRIDGE", "topicParameterGroup": - { "server": "message-router:3904", "listenerTopic": "POLICY_UPDATE_MSG", - "publisherTopic": "AC_ELEMENT_MSG", "fetchTimeout": 15000, "topicCommInfrastructure": - "dmaap" } }' - expectedResponse: 201 - outProperties: {} - 709c62b3-8918-41b9-a747-d21eb79c6c24: - id: 709c62b3-8918-41b9-a747-d21eb79c6c24 - definition: - name: onap.policy.clamp.ac.element.Http_StarterAutomationCompositionElement - version: 1.2.3 - participantId: 101c62b3-8918-41b9-a747-d21eb79c6c91 - deployState: DEPLOYED - lockState: LOCKED - description: Starter Automation Composition Element for the Demo - message: Deployed - properties: - baseUrl: http://10.101.0.249:30800 - httpHeaders: - Content-Type: application/json - Authorization: Basic YWNtVXNlcjp6YiFYenRHMzQ= - configurationEntities: - - configurationEntityId: - name: onap.policy.clamp.ac.starter - version: 1.0.0 - restSequence: - - restRequestId: - name: request1 - version: 1.0.1 - httpMethod: POST - path: /activate - body: - '{ "receiverId": { "name": "onap.policy.clamp.ac.startertobridge", - "version": "1.0.0" }, "timerMs": 20000, "elementType": "STARTER", "topicParameterGroup": - { "server": "message-router:3904", "listenerTopic": "POLICY_UPDATE_MSG", - "publisherTopic": "AC_ELEMENT_MSG", "fetchTimeout": 15000, "topicCommInfrastructure": - "dmaap" } }' - expectedResponse: 201 - outProperties: {} diff --git a/runtime-acm/src/main/resources/openapi/examples/putAcInstanceStateUpdate.yaml b/runtime-acm/src/main/resources/openapi/examples/putAcInstanceStateUpdate.yaml new file mode 100644 index 000000000..eda0c9fad --- /dev/null +++ b/runtime-acm/src/main/resources/openapi/examples/putAcInstanceStateUpdate.yaml @@ -0,0 +1 @@ +deployOrder: DEPLOY \ No newline at end of file diff --git a/runtime-acm/src/main/resources/openapi/examples/putAcIntanceStateUpdate.yaml b/runtime-acm/src/main/resources/openapi/examples/putAcIntanceStateUpdate.yaml deleted file mode 100644 index eda0c9fad..000000000 --- a/runtime-acm/src/main/resources/openapi/examples/putAcIntanceStateUpdate.yaml +++ /dev/null @@ -1 +0,0 @@ -deployOrder: DEPLOY \ No newline at end of file diff --git a/runtime-acm/src/main/resources/openapi/openapi.yaml b/runtime-acm/src/main/resources/openapi/openapi.yaml index 42ddd8cd1..74f1d4874 100644 --- a/runtime-acm/src/main/resources/openapi/openapi.yaml +++ b/runtime-acm/src/main/resources/openapi/openapi.yaml @@ -91,14 +91,14 @@ paths: items: $ref: '#/components/schemas/ParticipantInformation' example: - externalValue: 'https://raw.githubusercontent.com/onap/policy-clamp/master/runtime-acm/src/main/resources/openapi/examples/getMultiParticipantResponse.json' + externalValue: 'https://raw.githubusercontent.com/onap/policy-clamp/master/runtime-acm/src/main/resources/openapi/examples/getMultipleParticipantResponse.json' application/yaml: schema: type: array items: $ref: '#/components/schemas/ParticipantInformation' example: - externalValue: 'https://raw.githubusercontent.com/onap/policy-clamp/master/runtime-acm/src/main/resources/openapi/examples/getMultiParticipantResponse.yaml' + externalValue: 'https://raw.githubusercontent.com/onap/policy-clamp/master/runtime-acm/src/main/resources/openapi/examples/getMultipleParticipantResponse.yaml' 401: description: Authentication Error, returns an instance of [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java) @@ -265,7 +265,7 @@ paths: schema: $ref: '#/components/schemas/ToscaServiceTemplate' example: - externalValue: 'https://raw.githubusercontent.com/onap/policy-clamp/master/runtime-acm/src/main/resources/openapi/examples/getParticipantResponse.yaml' + externalValue: 'https://raw.githubusercontent.com/onap/policy-clamp/master/runtime-acm/src/main/resources/openapi/examples/getSingleParticipantResponse.yaml' 401: description: Authentication Error, returns an instance of [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java) @@ -1136,12 +1136,12 @@ paths: schema: $ref: '#/components/schemas/InstantiationResponse' example: - externalValue: 'https://raw.githubusercontent.com/onap/policy-clamp/master/runtime-acm/src/main/resources/openapi/examples/postCompositionInstancesResponse.json' + externalValue: 'https://raw.githubusercontent.com/onap/policy-clamp/master/runtime-acm/src/main/resources/openapi/examples/postCompositionInstanceResponse.json' application/yaml: schema: $ref: '#/components/schemas/InstantiationResponse' example: - externalValue: 'https://raw.githubusercontent.com/onap/policy-clamp/master/runtime-acm/src/main/resources/openapi/examples/postCompositionInstancesResponse.yaml' + externalValue: 'https://raw.githubusercontent.com/onap/policy-clamp/master/runtime-acm/src/main/resources/openapi/examples/postCompositionInstanceResponse.yaml' 401: description: Authentication Error, returns an instance of [SimpleResponse](https://github.com/onap/policy-clamp/blob/master/models/src/main/java/org/onap/policy/clamp/models/acm/messages/rest/SimpleResponse.java) -- cgit 1.2.3-korg