diff options
Diffstat (limited to 'runtime-acm/src/main/resources/openapi/examples/postCompositionInstance.json')
-rw-r--r-- | runtime-acm/src/main/resources/openapi/examples/postCompositionInstance.json | 95 |
1 files changed, 84 insertions, 11 deletions
diff --git a/runtime-acm/src/main/resources/openapi/examples/postCompositionInstance.json b/runtime-acm/src/main/resources/openapi/examples/postCompositionInstance.json index d2886038f..f6715a9cd 100644 --- a/runtime-acm/src/main/resources/openapi/examples/postCompositionInstance.json +++ b/runtime-acm/src/main/resources/openapi/examples/postCompositionInstance.json @@ -2,8 +2,6 @@ "name": "InstanceHttp", "version": "1.0.1", "compositionId": "562ed027-2689-481a-b3a5-e284b1fbc33f", - "state": "UNINITIALISED", - "orderedState": "UNINITIALISED", "description": "Demo automation composition instance Http", "elements": { "709c62b3-8918-41b9-a747-d21eb79c6c24": { @@ -20,9 +18,34 @@ "name": "org.onap.policy.clamp.acm.HttpParticipant", "version": "2.3.4" }, - "state": "UNINITIALISED", - "orderedState": "UNINITIALISED", - "description": "Starter Automation Composition Element for the Demo" + "description": "Starter Automation Composition Element for the Demo", + "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 + } + ] + } + ] + } }, "709c62b3-8918-41b9-a747-d21eb79c6c25": { "id": "709c62b3-8918-41b9-a747-d21eb79c6c25", @@ -38,9 +61,34 @@ "name": "org.onap.policy.clamp.acm.HttpParticipant", "version": "2.3.4" }, - "state": "UNINITIALISED", - "orderedState": "UNINITIALISED", - "description": "Bridge Automation Composition Element for the Demo" + "description": "Bridge Automation Composition Element for the Demo", + "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 + } + ] + } + ] + } }, "709c62b3-8918-41b9-a747-d21eb79c6c23": { "id": "709c62b3-8918-41b9-a747-d21eb79c6c23", @@ -56,9 +104,34 @@ "name": "org.onap.policy.clamp.acm.HttpParticipant", "version": "2.3.4" }, - "state": "UNINITIALISED", - "orderedState": "UNINITIALISED", - "description": "Sink Automation Composition Element for the Demo" + "description": "Sink Automation Composition Element for the Demo", + "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 + } + ] + } + ] + } } } } |