X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=docs%2Fswagger%2Fswagger.json;h=fbd9c48dd6e06c73a18a8c90b121afa2ff823a42;hb=5ec88e4569f8c8ad89ffc775f1687470f3b04fe7;hp=819d0919c4f8fe12c38d3c70f40348b3ca91be31;hpb=aeb7db7ef2af8d5a502e732d1e63fb8a254b955f;p=clamp.git diff --git a/docs/swagger/swagger.json b/docs/swagger/swagger.json index 819d0919..fbd9c48d 100644 --- a/docs/swagger/swagger.json +++ b/docs/swagger/swagger.json @@ -1,151 +1,182 @@ { "swagger" : "2.0", "info" : { - "version" : "3.0.3-SNAPSHOT", + "version" : "5.1.0-SNAPSHOT", "title" : "Clamp Rest API" }, - "host" : "0.0.0.0", - "basePath" : "/restservices/clds/v1/", + "host" : "localhost:43065", + "basePath" : "/restservices/clds/", "schemes" : [ "http" ], "paths" : { - "/clds/action/{action}/{modelName}?test={test}" : { + "/v2/clampInformation" : { + "get" : { + "operationId" : "route142", + "produces" : [ "application/json" ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/ClampInformation" + } + } + }, + "x-camelContextId" : "camel-4", + "x-routeId" : "route142" + } + }, + "/v2/dictionary" : { + "get" : { + "operationId" : "route127", + "produces" : [ "application/json" ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/Dictionary" + } + } + }, + "x-camelContextId" : "camel-4", + "x-routeId" : "route127" + }, "put" : { - "operationId" : "route10", + "operationId" : "route130", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { - "name" : "action", - "in" : "path", - "required" : true, - "type" : "string" - }, { - "name" : "modelName}?test={test", - "in" : "path", - "required" : true, - "type" : "string" - }, { "in" : "body", "name" : "body", "required" : true, "schema" : { - "$ref" : "#/definitions/CldsModel" + "$ref" : "#/definitions/Dictionary" } } ], - "responses" : { - "200" : { } - }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route10" - } - }, - "/clds/cldsDetails" : { - "get" : { - "operationId" : "route2", - "produces" : [ "application/json" ], "responses" : { "200" : { "description" : "Output type", - "responseSchema" : { - "$ref" : "#/definitions/CldsMonitoringDetails" - }, "schema" : { - "$ref" : "#/definitions/CldsMonitoringDetails" + "$ref" : "#/definitions/Dictionary" } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route2" + "x-camelContextId" : "camel-4", + "x-routeId" : "route130" } }, - "/clds/cldsInfo" : { + "/v2/dictionary/{dictionaryName}" : { "get" : { - "operationId" : "route3", + "operationId" : "route129", "produces" : [ "application/json" ], + "parameters" : [ { + "name" : "dictionaryName", + "in" : "path", + "required" : true, + "type" : "string" + } ], "responses" : { "200" : { "description" : "Output type", - "responseSchema" : { - "$ref" : "#/definitions/CldsInfo" - }, "schema" : { - "$ref" : "#/definitions/CldsInfo" + "$ref" : "#/definitions/Dictionary" } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route3" + "x-camelContextId" : "camel-4", + "x-routeId" : "route129" } }, - "/clds/dcae/event?test={test}" : { - "post" : { - "operationId" : "route11", + "/v2/dictionary/{name}" : { + "put" : { + "operationId" : "route131", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { + "name" : "name", + "in" : "path", + "required" : true, + "type" : "string" + }, { "in" : "body", "name" : "body", "required" : true, "schema" : { - "$ref" : "#/definitions/DcaeEvent" + "$ref" : "#/definitions/Dictionary" } } ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/Dictionary" + } + } + }, + "x-camelContextId" : "camel-4", + "x-routeId" : "route131" + }, + "delete" : { + "operationId" : "route132", + "produces" : [ "application/json" ], + "parameters" : [ { + "name" : "name", + "in" : "path", + "required" : true, + "type" : "string" + } ], "responses" : { "200" : { } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route11" + "x-camelContextId" : "camel-4", + "x-routeId" : "route132" } }, - "/clds/deploy/{modelName}" : { - "put" : { - "operationId" : "route15", - "consumes" : [ "application/json" ], + "/v2/dictionary/{name}/elements/{shortName}" : { + "delete" : { + "operationId" : "route133", "produces" : [ "application/json" ], "parameters" : [ { - "name" : "modelName", + "name" : "name", "in" : "path", "required" : true, "type" : "string" }, { - "in" : "body", - "name" : "body", + "name" : "shortName", + "in" : "path", "required" : true, - "schema" : { - "$ref" : "#/definitions/CldsModel" - } + "type" : "string" } ], "responses" : { "200" : { } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route15" + "x-camelContextId" : "camel-4", + "x-routeId" : "route133" } }, - "/clds/model-names" : { + "/v2/dictionary/secondary/names" : { "get" : { - "operationId" : "route9", + "operationId" : "route128", "produces" : [ "application/json" ], "responses" : { "200" : { "description" : "Output type", - "responseSchema" : { - "$ref" : "#/definitions/ValueItem" - }, "schema" : { - "$ref" : "#/definitions/ValueItem" + "type" : "array", + "items" : { + "type" : "string" + } } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route9" + "x-camelContextId" : "camel-4", + "x-routeId" : "route128" } }, - "/clds/model/{modelName}" : { + "/v2/loop/{loopName}" : { "get" : { - "operationId" : "route7", + "operationId" : "route111", "produces" : [ "application/json" ], "parameters" : [ { - "name" : "modelName", + "name" : "loopName", "in" : "path", "required" : true, "type" : "string" @@ -153,55 +184,75 @@ "responses" : { "200" : { "description" : "Output type", - "responseSchema" : { - "$ref" : "#/definitions/CldsModel" - }, "schema" : { - "$ref" : "#/definitions/CldsModel" + "$ref" : "#/definitions/Loop" } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route7" - }, + "x-camelContextId" : "camel-4", + "x-routeId" : "route111" + } + }, + "/v2/loop/addOperationaPolicy/{loopName}/policyModel/{policyType}/{policyVersion}" : { "put" : { - "operationId" : "route8", - "consumes" : [ "application/json" ], + "operationId" : "route124", "produces" : [ "application/json" ], "parameters" : [ { - "name" : "modelName", + "name" : "loopName", "in" : "path", "required" : true, "type" : "string" }, { - "in" : "body", - "name" : "body", + "name" : "policyType", + "in" : "path", "required" : true, - "schema" : { - "$ref" : "#/definitions/CldsModel" + "type" : "string" + }, { + "name" : "policyVersion", + "in" : "path", + "required" : true, + "type" : "string" + } ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/Loop" + } } + }, + "x-camelContextId" : "camel-4", + "x-routeId" : "route124" + } + }, + "/v2/loop/create/{loopName}?templateName={templateName}" : { + "post" : { + "operationId" : "route126", + "consumes" : [ "application/json" ], + "produces" : [ "application/json" ], + "parameters" : [ { + "name" : "loopName}?templateName={templateName", + "in" : "path", + "required" : true, + "type" : "string" } ], "responses" : { "200" : { "description" : "Output type", - "responseSchema" : { - "$ref" : "#/definitions/CldsModel" - }, "schema" : { - "$ref" : "#/definitions/CldsModel" + "$ref" : "#/definitions/Loop" } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route8" + "x-camelContextId" : "camel-4", + "x-routeId" : "route126" } }, - "/clds/model/bpmn/{modelName}" : { - "get" : { - "operationId" : "route5", - "produces" : [ "text/xml" ], + "/v2/loop/delete/{loopName}" : { + "put" : { + "operationId" : "route122", "parameters" : [ { - "name" : "modelName", + "name" : "loopName", "in" : "path", "required" : true, "type" : "string" @@ -209,116 +260,148 @@ "responses" : { "200" : { } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route5" + "x-camelContextId" : "camel-4", + "x-routeId" : "route122" } }, - "/clds/model/image/{modelName}" : { - "get" : { - "operationId" : "route6", - "produces" : [ "text/xml" ], + "/v2/loop/deploy/{loopName}" : { + "put" : { + "operationId" : "route115", + "produces" : [ "application/json" ], "parameters" : [ { - "name" : "modelName", + "name" : "loopName", "in" : "path", "required" : true, "type" : "string" } ], "responses" : { - "200" : { } + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/Loop" + } + } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route6" + "x-camelContextId" : "camel-4", + "x-routeId" : "route115" } }, - "/clds/properties" : { + "/v2/loop/getAllNames" : { "get" : { - "operationId" : "route13", + "operationId" : "route110", "produces" : [ "application/json" ], "responses" : { - "200" : { } + "200" : { + "description" : "Output type", + "schema" : { + "type" : "array", + "items" : { + "type" : "string" + } + } + } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route13" + "x-camelContextId" : "camel-4", + "x-routeId" : "route110" } }, - "/clds/properties/{serviceInvariantUUID}?refresh={refresh}" : { + "/v2/loop/getstatus/{loopName}" : { "get" : { - "operationId" : "route14", + "operationId" : "route123", "produces" : [ "application/json" ], "parameters" : [ { - "name" : "serviceInvariantUUID}?refresh={refresh", + "name" : "loopName", "in" : "path", "required" : true, "type" : "string" } ], "responses" : { - "200" : { } - }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route14" - } - }, - "/clds/sdc/services" : { - "get" : { - "operationId" : "route12", - "produces" : [ "application/json" ], - "responses" : { - "200" : { } + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/Loop" + } + } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route12" + "x-camelContextId" : "camel-4", + "x-routeId" : "route123" } }, - "/clds/undeploy/{modelName}" : { + "/v2/loop/refreshMicroServicePolicyJsonSchema/{loopName}/{microServicePolicyName}" : { "put" : { - "operationId" : "route16", - "consumes" : [ "application/json" ], + "operationId" : "route116", "produces" : [ "application/json" ], "parameters" : [ { - "name" : "modelName", + "name" : "loopName", "in" : "path", "required" : true, "type" : "string" }, { - "in" : "body", - "name" : "body", + "name" : "microServicePolicyName", + "in" : "path", "required" : true, - "schema" : { - "$ref" : "#/definitions/CldsModel" - } + "type" : "string" } ], "responses" : { - "200" : { } + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/Loop" + } + } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route16" + "x-camelContextId" : "camel-4", + "x-routeId" : "route116" } }, - "/cldsTempate/template-names" : { - "get" : { - "operationId" : "route21", + "/v2/loop/refreshOperationalPolicyJsonSchema/{loopName}/{operationalPolicyName}" : { + "put" : { + "operationId" : "route117", "produces" : [ "application/json" ], + "parameters" : [ { + "name" : "loopName", + "in" : "path", + "required" : true, + "type" : "string" + }, { + "name" : "operationalPolicyName", + "in" : "path", + "required" : true, + "type" : "string" + } ], "responses" : { "200" : { "description" : "Output type", - "responseSchema" : { - "$ref" : "#/definitions/ValueItem" - }, "schema" : { - "$ref" : "#/definitions/ValueItem" + "$ref" : "#/definitions/Loop" } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route21" + "x-camelContextId" : "camel-4", + "x-routeId" : "route117" } }, - "/cldsTempate/template/{templateName}" : { - "get" : { - "operationId" : "route19", + "/v2/loop/removeOperationaPolicy/{loopName}/policyModel/{policyType}/{policyVersion}/{policyName}" : { + "put" : { + "operationId" : "route125", "produces" : [ "application/json" ], "parameters" : [ { - "name" : "templateName", + "name" : "loopName", + "in" : "path", + "required" : true, + "type" : "string" + }, { + "name" : "policyType", + "in" : "path", + "required" : true, + "type" : "string" + }, { + "name" : "policyVersion", + "in" : "path", + "required" : true, + "type" : "string" + }, { + "name" : "policyName", "in" : "path", "required" : true, "type" : "string" @@ -326,109 +409,110 @@ "responses" : { "200" : { "description" : "Output type", - "responseSchema" : { - "$ref" : "#/definitions/CldsTemplate" - }, "schema" : { - "$ref" : "#/definitions/CldsTemplate" + "$ref" : "#/definitions/Loop" } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route19" - }, + "x-camelContextId" : "camel-4", + "x-routeId" : "route125" + } + }, + "/v2/loop/restart/{loopName}" : { "put" : { - "operationId" : "route20", - "consumes" : [ "application/json" ], + "operationId" : "route120", "produces" : [ "application/json" ], "parameters" : [ { - "name" : "templateName", + "name" : "loopName", "in" : "path", "required" : true, "type" : "string" - }, { - "in" : "body", - "name" : "body", - "required" : true, - "schema" : { - "$ref" : "#/definitions/CldsTemplate" - } } ], "responses" : { "200" : { "description" : "Output type", - "responseSchema" : { - "$ref" : "#/definitions/CldsTemplate" - }, "schema" : { - "$ref" : "#/definitions/CldsTemplate" + "$ref" : "#/definitions/Loop" } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route20" + "x-camelContextId" : "camel-4", + "x-routeId" : "route120" } }, - "/cldsTempate/template/bpmn/{templateName}" : { - "get" : { - "operationId" : "route17", - "produces" : [ "text/xml" ], + "/v2/loop/stop/{loopName}" : { + "put" : { + "operationId" : "route119", + "produces" : [ "application/json" ], "parameters" : [ { - "name" : "templateName", + "name" : "loopName", "in" : "path", "required" : true, "type" : "string" } ], "responses" : { - "200" : { } + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/Loop" + } + } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route17" + "x-camelContextId" : "camel-4", + "x-routeId" : "route119" } }, - "/cldsTempate/template/image/{templateName}" : { - "get" : { - "operationId" : "route18", - "produces" : [ "text/xml" ], + "/v2/loop/submit/{loopName}" : { + "put" : { + "operationId" : "route121", + "produces" : [ "application/json" ], "parameters" : [ { - "name" : "templateName", + "name" : "loopName", "in" : "path", "required" : true, "type" : "string" } ], "responses" : { - "200" : { } + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/Loop" + } + } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route18" + "x-camelContextId" : "camel-4", + "x-routeId" : "route121" } }, - "/dictionary" : { - "get" : { - "operationId" : "route27", + "/v2/loop/undeploy/{loopName}" : { + "put" : { + "operationId" : "route118", "produces" : [ "application/json" ], + "parameters" : [ { + "name" : "loopName", + "in" : "path", + "required" : true, + "type" : "string" + } ], "responses" : { "200" : { "description" : "Output type", - "responseSchema" : { - "$ref" : "#/definitions/CldsDictionary" - }, "schema" : { - "$ref" : "#/definitions/CldsDictionary" + "$ref" : "#/definitions/Loop" } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route27" + "x-camelContextId" : "camel-4", + "x-routeId" : "route118" } }, - "/dictionary/{dictionaryName}" : { - "put" : { - "operationId" : "route26", + "/v2/loop/updateGlobalProperties/{loopName}" : { + "post" : { + "operationId" : "route112", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { - "name" : "dictionaryName", + "name" : "loopName", "in" : "path", "required" : true, "type" : "string" @@ -437,54 +521,58 @@ "name" : "body", "required" : true, "schema" : { - "$ref" : "#/definitions/CldsDictionary" + "$ref" : "#/definitions/JsonObject" } } ], "responses" : { "200" : { "description" : "Output type", - "responseSchema" : { - "$ref" : "#/definitions/CldsDictionary" - }, "schema" : { - "$ref" : "#/definitions/CldsDictionary" + "$ref" : "#/definitions/Loop" } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route26" + "x-camelContextId" : "camel-4", + "x-routeId" : "route112" } }, - "/dictionary/{dictionaryName}/items" : { - "get" : { - "operationId" : "route29", + "/v2/loop/updateMicroservicePolicy/{loopName}" : { + "post" : { + "operationId" : "route114", + "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { - "name" : "dictionaryName", + "name" : "loopName", "in" : "path", "required" : true, "type" : "string" + }, { + "in" : "body", + "name" : "body", + "required" : true, + "schema" : { + "$ref" : "#/definitions/MicroServicePolicy" + } } ], "responses" : { "200" : { "description" : "Output type", - "responseSchema" : { - "$ref" : "#/definitions/CldsDictionary" - }, "schema" : { - "$ref" : "#/definitions/CldsDictionary" + "$ref" : "#/definitions/MicroServicePolicy" } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route29" - }, - "put" : { - "operationId" : "route28", + "x-camelContextId" : "camel-4", + "x-routeId" : "route114" + } + }, + "/v2/loop/updateOperationalPolicies/{loopName}" : { + "post" : { + "operationId" : "route113", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { - "name" : "dictionaryName", + "name" : "loopName", "in" : "path", "required" : true, "type" : "string" @@ -493,60 +581,71 @@ "name" : "body", "required" : true, "schema" : { - "$ref" : "#/definitions/CldsDictionaryItem" + "$ref" : "#/definitions/JsonArray" } } ], "responses" : { "200" : { "description" : "Output type", - "responseSchema" : { - "$ref" : "#/definitions/CldsDictionaryItem" - }, "schema" : { - "$ref" : "#/definitions/CldsDictionaryItem" + "$ref" : "#/definitions/Loop" } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route28" + "x-camelContextId" : "camel-4", + "x-routeId" : "route113" } }, - "/healthcheck" : { + "/v2/policyToscaModels" : { "get" : { - "operationId" : "route4", + "operationId" : "route134", "produces" : [ "application/json" ], "responses" : { - "200" : { } + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/PolicyModel" + } + } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route4" - } - }, - "/tosca/models" : { - "get" : { - "operationId" : "route24", + "x-camelContextId" : "camel-4", + "x-routeId" : "route134" + }, + "post" : { + "operationId" : "route137", + "consumes" : [ "plain/text" ], "produces" : [ "application/json" ], + "parameters" : [ { + "in" : "body", + "name" : "body", + "required" : true, + "schema" : { + "type" : "string" + } + } ], "responses" : { "200" : { "description" : "Output type", - "responseSchema" : { - "$ref" : "#/definitions/CldsToscaModel" - }, "schema" : { - "$ref" : "#/definitions/CldsToscaModel" + "$ref" : "#/definitions/PolicyModel" } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route24" + "x-camelContextId" : "camel-4", + "x-routeId" : "route137" } }, - "/tosca/models/{toscaModelName}" : { + "/v2/policyToscaModels/{policyModelType}/{policyModelVersion}" : { "get" : { - "operationId" : "route25", + "operationId" : "route135", "produces" : [ "application/json" ], "parameters" : [ { - "name" : "toscaModelName", + "name" : "policyModelType", + "in" : "path", + "required" : true, + "type" : "string" + }, { + "name" : "policyModelVersion", "in" : "path", "required" : true, "type" : "string" @@ -554,23 +653,25 @@ "responses" : { "200" : { "description" : "Output type", - "responseSchema" : { - "$ref" : "#/definitions/CldsToscaModel" - }, "schema" : { - "$ref" : "#/definitions/CldsToscaModel" + "$ref" : "#/definitions/PolicyModel" } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route25" + "x-camelContextId" : "camel-4", + "x-routeId" : "route135" }, "put" : { - "operationId" : "route22", - "consumes" : [ "application/json" ], + "operationId" : "route138", + "consumes" : [ "plain/text" ], "produces" : [ "application/json" ], "parameters" : [ { - "name" : "toscaModelName", + "name" : "policyModelType", + "in" : "path", + "required" : true, + "type" : "string" + }, { + "name" : "policyModelVersion", "in" : "path", "required" : true, "type" : "string" @@ -579,424 +680,979 @@ "name" : "body", "required" : true, "schema" : { - "$ref" : "#/definitions/CldsToscaModel" + "type" : "string" } } ], "responses" : { - "200" : { } + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/PolicyModel" + } + } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route22" + "x-camelContextId" : "camel-4", + "x-routeId" : "route138" } }, - "/tosca/models/policyType/{policyType}" : { + "/v2/policyToscaModels/yaml/{policyModelType}/{policyModelVersion}" : { "get" : { - "operationId" : "route23", + "operationId" : "route136", "produces" : [ "application/json" ], "parameters" : [ { - "name" : "policyType", + "name" : "policyModelType", + "in" : "path", + "required" : true, + "type" : "string" + }, { + "name" : "policyModelVersion", "in" : "path", "required" : true, "type" : "string" } ], "responses" : { - "200" : { } + "200" : { + "description" : "Output type", + "schema" : { + "type" : "string" + } + } + }, + "x-camelContextId" : "camel-4", + "x-routeId" : "route136" + } + }, + "/v2/templates" : { + "get" : { + "operationId" : "route139", + "produces" : [ "application/json" ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/LoopTemplate" + } + } + }, + "x-camelContextId" : "camel-4", + "x-routeId" : "route139" + } + }, + "/v2/templates/{templateName}" : { + "get" : { + "operationId" : "route140", + "produces" : [ "application/json" ], + "parameters" : [ { + "name" : "templateName", + "in" : "path", + "required" : true, + "type" : "string" + } ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/LoopTemplate" + } + } + }, + "x-camelContextId" : "camel-4", + "x-routeId" : "route140" + } + }, + "/v2/templates/names" : { + "get" : { + "operationId" : "route141", + "produces" : [ "application/json" ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "type" : "array", + "items" : { + "type" : "string" + } + } + } + }, + "x-camelContextId" : "camel-4", + "x-routeId" : "route141" + } + }, + "/v1/healthcheck" : { + "get" : { + "operationId" : "route143", + "produces" : [ "application/json" ], + "responses" : { + "200" : { + "description" : "Output type", + "schema" : { + "$ref" : "#/definitions/CldsHealthCheck" + } + } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route23" + "x-camelContextId" : "camel-4", + "x-routeId" : "route143" } }, - "/user/getUser" : { + "/v1/user/getUser" : { "get" : { - "operationId" : "route30", + "operationId" : "route144", "produces" : [ "text/plain" ], "responses" : { "200" : { } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route30" + "x-camelContextId" : "camel-4", + "x-routeId" : "route144" } } }, "definitions" : { - "CldsModelInstance" : { + "ClampInformation" : { "type" : "object", "properties" : { - "modelInstanceId" : { + "userName" : { "type" : "string" }, - "location" : { + "cldsVersion" : { "type" : "string" }, - "vmName" : { - "type" : "string" + "allPermissions" : { + "type" : "array", + "items" : { + "type" : "string" + } } + }, + "x-className" : { + "type" : "string", + "format" : "org.onap.clamp.clds.model.ClampInformation" } }, - "CldsModel" : { + "Dictionary" : { "type" : "object", "properties" : { - "id" : { - "type" : "string" + "createdDate" : { + "type" : "integer", + "format" : "int64" + }, + "updatedDate" : { + "type" : "integer", + "format" : "int64" }, - "templateId" : { + "updatedBy" : { "type" : "string" }, - "templateName" : { + "createdBy" : { "type" : "string" }, "name" : { "type" : "string" }, - "controlNamePrefix" : { - "type" : "string" + "secondLevelDictionary" : { + "type" : "integer", + "format" : "int32" }, - "controlNameUuid" : { + "subDictionaryType" : { "type" : "string" }, - "bpmnText" : { + "dictionaryElements" : { + "type" : "array", + "uniqueItems" : true, + "items" : { + "$ref" : "#/definitions/DictionaryElement" + } + } + }, + "x-className" : { + "type" : "string", + "format" : "org.onap.clamp.tosca.Dictionary" + } + }, + "DictionaryElement" : { + "type" : "object", + "properties" : { + "createdDate" : { + "type" : "integer", + "format" : "int64" + }, + "updatedDate" : { + "type" : "integer", + "format" : "int64" + }, + "updatedBy" : { "type" : "string" }, - "propText" : { + "createdBy" : { "type" : "string" }, - "imageText" : { + "shortName" : { "type" : "string" }, - "docText" : { + "name" : { "type" : "string" }, - "blueprintText" : { + "description" : { "type" : "string" }, - "event" : { - "$ref" : "#/definitions/CldsEvent" + "type" : { + "type" : "string" }, - "status" : { + "subDictionary" : { "type" : "string" }, - "permittedActionCd" : { + "usedByDictionaries" : { "type" : "array", + "uniqueItems" : true, "items" : { - "type" : "string" + "$ref" : "#/definitions/Dictionary" } + } + } + }, + "Loop" : { + "type" : "object", + "properties" : { + "createdDate" : { + "type" : "integer", + "format" : "int64" }, - "cldsModelInstanceList" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/CldsModelInstance" - } + "updatedDate" : { + "type" : "integer", + "format" : "int64" }, - "errorMessageForUi" : { + "updatedBy" : { "type" : "string" }, - "typeId" : { + "createdBy" : { "type" : "string" }, - "typeName" : { + "name" : { "type" : "string" }, - "deploymentId" : { + "dcaeDeploymentId" : { "type" : "string" }, - "deploymentStatusUrl" : { + "dcaeDeploymentStatusUrl" : { "type" : "string" }, - "controlName" : { - "type" : "string" + "globalPropertiesJson" : { + "$ref" : "#/definitions/JsonObject" + }, + "modelService" : { + "$ref" : "#/definitions/Service" + }, + "lastComputedState" : { + "type" : "string", + "enum" : [ "DESIGN", "SUBMITTED", "DEPLOYED", "RUNNING", "STOPPED", "IN_ERROR", "WAITING" ] + }, + "components" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/definitions/ExternalComponent" + } + }, + "operationalPolicies" : { + "type" : "array", + "uniqueItems" : true, + "items" : { + "$ref" : "#/definitions/OperationalPolicy" + } + }, + "microServicePolicies" : { + "type" : "array", + "uniqueItems" : true, + "items" : { + "$ref" : "#/definitions/MicroServicePolicy" + } + }, + "loopLogs" : { + "type" : "array", + "uniqueItems" : true, + "items" : { + "$ref" : "#/definitions/LoopLog" + } + }, + "loopTemplate" : { + "$ref" : "#/definitions/LoopTemplate" } }, "x-className" : { "type" : "string", - "format" : "org.onap.clamp.clds.model.CldsModel" + "format" : "org.onap.clamp.loop.Loop" } }, - "CldsEvent" : { + "JsonPrimitive" : { "type" : "object", "properties" : { - "id" : { - "type" : "string" + "asBoolean" : { + "type" : "boolean" }, - "actionCd" : { - "type" : "string" + "number" : { + "type" : "boolean" }, - "actionStateCd" : { + "asString" : { "type" : "string" }, - "processInstanceId" : { - "type" : "string" + "asNumber" : { + "$ref" : "#/definitions/Number" + }, + "asDouble" : { + "type" : "number", + "format" : "double" + }, + "asFloat" : { + "type" : "number", + "format" : "float" }, - "userid" : { + "asLong" : { + "type" : "integer", + "format" : "int64" + }, + "asInt" : { + "type" : "integer", + "format" : "int32" + }, + "asByte" : { + "type" : "string", + "format" : "byte" + }, + "asCharacter" : { "type" : "string" + }, + "asBigDecimal" : { + "type" : "number" + }, + "asBigInteger" : { + "type" : "integer" + }, + "asShort" : { + "type" : "integer", + "format" : "int32" + }, + "boolean" : { + "type" : "boolean" + }, + "string" : { + "type" : "boolean" + }, + "jsonArray" : { + "type" : "boolean" + }, + "jsonObject" : { + "type" : "boolean" + }, + "jsonPrimitive" : { + "type" : "boolean" + }, + "jsonNull" : { + "type" : "boolean" + }, + "asJsonArray" : { + "$ref" : "#/definitions/JsonArray" + }, + "asJsonPrimitive" : { + "$ref" : "#/definitions/JsonPrimitive" + }, + "asJsonNull" : { + "$ref" : "#/definitions/JsonNull" + }, + "asJsonObject" : { + "$ref" : "#/definitions/JsonObject" } } }, - "CldsMonitoringDetails" : { + "MicroServicePolicy" : { "type" : "object", "properties" : { - "closeloopName" : { + "createdDate" : { + "type" : "integer", + "format" : "int64" + }, + "updatedDate" : { + "type" : "integer", + "format" : "int64" + }, + "updatedBy" : { "type" : "string" }, - "modelName" : { + "createdBy" : { "type" : "string" }, - "serviceTypeId" : { + "jsonRepresentation" : { + "$ref" : "#/definitions/JsonObject" + }, + "configurationsJson" : { + "$ref" : "#/definitions/JsonObject" + }, + "loopElementModel" : { + "$ref" : "#/definitions/LoopElementModel" + }, + "pdpGroup" : { "type" : "string" }, - "deploymentId" : { + "pdpSubgroup" : { "type" : "string" }, - "templateName" : { + "policyModel" : { + "$ref" : "#/definitions/PolicyModel" + }, + "name" : { "type" : "string" }, - "action" : { + "context" : { "type" : "string" }, - "userid" : { + "deviceTypeScope" : { "type" : "string" }, - "timestamp" : { + "shared" : { + "type" : "boolean" + }, + "usedByLoops" : { + "type" : "array", + "uniqueItems" : true, + "items" : { + "$ref" : "#/definitions/Loop" + } + }, + "dcaeDeploymentId" : { + "type" : "string" + }, + "dcaeDeploymentStatusUrl" : { + "type" : "string" + }, + "dcaeBlueprintId" : { "type" : "string" + }, + "legacy" : { + "type" : "boolean" } }, "x-className" : { "type" : "string", - "format" : "org.onap.clamp.clds.model.CldsMonitoringDetails" + "format" : "org.onap.clamp.policy.microservice.MicroServicePolicy" } }, - "CldsInfo" : { + "JsonObject" : { "type" : "object", "properties" : { - "userName" : { - "type" : "string" + "asBoolean" : { + "type" : "boolean" }, - "cldsVersion" : { + "asString" : { "type" : "string" }, - "permissionReadCl" : { + "jsonArray" : { "type" : "boolean" }, - "permissionUpdateCl" : { + "jsonObject" : { "type" : "boolean" }, - "permissionReadTemplate" : { + "jsonPrimitive" : { "type" : "boolean" }, - "permissionUpdateTemplate" : { + "jsonNull" : { "type" : "boolean" }, - "permissionReadTosca" : { - "type" : "boolean" + "asJsonArray" : { + "$ref" : "#/definitions/JsonArray" }, - "permissionUpdateTosca" : { - "type" : "boolean" + "asJsonPrimitive" : { + "$ref" : "#/definitions/JsonPrimitive" + }, + "asJsonNull" : { + "$ref" : "#/definitions/JsonNull" + }, + "asNumber" : { + "$ref" : "#/definitions/Number" + }, + "asDouble" : { + "type" : "number", + "format" : "double" + }, + "asFloat" : { + "type" : "number", + "format" : "float" + }, + "asLong" : { + "type" : "integer", + "format" : "int64" + }, + "asInt" : { + "type" : "integer", + "format" : "int32" + }, + "asByte" : { + "type" : "string", + "format" : "byte" + }, + "asCharacter" : { + "type" : "string" + }, + "asBigDecimal" : { + "type" : "number" + }, + "asBigInteger" : { + "type" : "integer" + }, + "asShort" : { + "type" : "integer", + "format" : "int32" + }, + "asJsonObject" : { + "$ref" : "#/definitions/JsonObject" } }, "x-className" : { "type" : "string", - "format" : "org.onap.clamp.clds.model.CldsInfo" + "format" : "com.google.gson.JsonObject" } }, - "DcaeEvent" : { + "PolicyModel" : { "type" : "object", "properties" : { - "event" : { + "createdDate" : { + "type" : "integer", + "format" : "int64" + }, + "updatedDate" : { + "type" : "integer", + "format" : "int64" + }, + "updatedBy" : { + "type" : "string" + }, + "createdBy" : { + "type" : "string" + }, + "policyModelType" : { "type" : "string" }, - "serviceUUID" : { + "version" : { "type" : "string" }, - "resourceUUID" : { + "policyModelTosca" : { "type" : "string" }, - "artifactName" : { + "policyAcronym" : { "type" : "string" }, - "instances" : { + "usedByElementModels" : { "type" : "array", + "uniqueItems" : true, "items" : { - "$ref" : "#/definitions/CldsModelInstance" + "$ref" : "#/definitions/LoopElementModel" } }, - "controlName" : { - "type" : "string" - }, - "cldsActionCd" : { - "type" : "string" + "policyPdpGroup" : { + "$ref" : "#/definitions/JsonObject" } }, "x-className" : { "type" : "string", - "format" : "org.onap.clamp.clds.model.DcaeEvent" + "format" : "org.onap.clamp.loop.template.PolicyModel" } }, - "ValueItem" : { + "Service" : { "type" : "object", "properties" : { - "value" : { + "serviceUuid" : { + "type" : "string" + }, + "name" : { + "type" : "string" + }, + "version" : { "type" : "string" + }, + "serviceDetails" : { + "$ref" : "#/definitions/JsonObject" + }, + "resourceDetails" : { + "$ref" : "#/definitions/JsonObject" } - }, - "x-className" : { - "type" : "string", - "format" : "org.onap.clamp.clds.model.ValueItem" } }, - "CldsTemplate" : { + "LoopTemplateLoopElementModel" : { "type" : "object", "properties" : { - "id" : { - "type" : "string" + "loopTemplate" : { + "$ref" : "#/definitions/LoopTemplate" }, - "name" : { - "type" : "string" + "loopElementModel" : { + "$ref" : "#/definitions/LoopElementModel" }, - "controlNamePrefix" : { - "type" : "string" + "flowOrder" : { + "type" : "integer", + "format" : "int32" + } + } + }, + "OperationalPolicy" : { + "type" : "object", + "properties" : { + "createdDate" : { + "type" : "integer", + "format" : "int64" }, - "controlNameUuid" : { - "type" : "string" + "updatedDate" : { + "type" : "integer", + "format" : "int64" }, - "bpmnId" : { + "updatedBy" : { "type" : "string" }, - "bpmnUserid" : { + "createdBy" : { "type" : "string" }, - "bpmnText" : { - "type" : "string" + "jsonRepresentation" : { + "$ref" : "#/definitions/JsonObject" }, - "imageId" : { - "type" : "string" + "configurationsJson" : { + "$ref" : "#/definitions/JsonObject" }, - "imageUserid" : { - "type" : "string" + "loopElementModel" : { + "$ref" : "#/definitions/LoopElementModel" }, - "imageText" : { + "pdpGroup" : { "type" : "string" }, - "propId" : { + "pdpSubgroup" : { "type" : "string" }, - "propUserid" : { - "type" : "string" + "policyModel" : { + "$ref" : "#/definitions/PolicyModel" }, - "propText" : { + "name" : { "type" : "string" }, - "userAuthorizedToUpdate" : { + "loop" : { + "$ref" : "#/definitions/Loop" + }, + "legacy" : { "type" : "boolean" } - }, - "x-className" : { - "type" : "string", - "format" : "org.onap.clamp.clds.model.CldsTemplate" } }, - "CldsDictionary" : { + "JsonNull" : { "type" : "object", "properties" : { - "dictionaryId" : { - "type" : "string" + "asBoolean" : { + "type" : "boolean" }, - "dictionaryName" : { + "asString" : { "type" : "string" }, - "createdBy" : { + "jsonArray" : { + "type" : "boolean" + }, + "jsonObject" : { + "type" : "boolean" + }, + "jsonPrimitive" : { + "type" : "boolean" + }, + "jsonNull" : { + "type" : "boolean" + }, + "asJsonArray" : { + "$ref" : "#/definitions/JsonArray" + }, + "asJsonPrimitive" : { + "$ref" : "#/definitions/JsonPrimitive" + }, + "asJsonNull" : { + "$ref" : "#/definitions/JsonNull" + }, + "asNumber" : { + "$ref" : "#/definitions/Number" + }, + "asDouble" : { + "type" : "number", + "format" : "double" + }, + "asFloat" : { + "type" : "number", + "format" : "float" + }, + "asLong" : { + "type" : "integer", + "format" : "int64" + }, + "asInt" : { + "type" : "integer", + "format" : "int32" + }, + "asByte" : { + "type" : "string", + "format" : "byte" + }, + "asCharacter" : { "type" : "string" }, - "updatedBy" : { + "asBigDecimal" : { + "type" : "number" + }, + "asBigInteger" : { + "type" : "integer" + }, + "asShort" : { + "type" : "integer", + "format" : "int32" + }, + "asJsonObject" : { + "$ref" : "#/definitions/JsonObject" + } + } + }, + "JsonArray" : { + "type" : "object", + "properties" : { + "asBoolean" : { + "type" : "boolean" + }, + "asString" : { "type" : "string" }, - "lastUpdatedDate" : { + "asNumber" : { + "$ref" : "#/definitions/Number" + }, + "asDouble" : { + "type" : "number", + "format" : "double" + }, + "asFloat" : { + "type" : "number", + "format" : "float" + }, + "asLong" : { + "type" : "integer", + "format" : "int64" + }, + "asInt" : { + "type" : "integer", + "format" : "int32" + }, + "asByte" : { + "type" : "string", + "format" : "byte" + }, + "asCharacter" : { "type" : "string" }, - "cldsDictionaryItems" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/CldsDictionaryItem" - } + "asBigDecimal" : { + "type" : "number" + }, + "asBigInteger" : { + "type" : "integer" + }, + "asShort" : { + "type" : "integer", + "format" : "int32" + }, + "jsonArray" : { + "type" : "boolean" + }, + "jsonObject" : { + "type" : "boolean" + }, + "jsonPrimitive" : { + "type" : "boolean" + }, + "jsonNull" : { + "type" : "boolean" + }, + "asJsonArray" : { + "$ref" : "#/definitions/JsonArray" + }, + "asJsonPrimitive" : { + "$ref" : "#/definitions/JsonPrimitive" + }, + "asJsonNull" : { + "$ref" : "#/definitions/JsonNull" + }, + "asJsonObject" : { + "$ref" : "#/definitions/JsonObject" } }, "x-className" : { "type" : "string", - "format" : "org.onap.clamp.clds.model.CldsDictionary" + "format" : "com.google.gson.JsonArray" } }, - "CldsDictionaryItem" : { + "LoopLog" : { "type" : "object", "properties" : { - "dictElementId" : { - "type" : "string" + "id" : { + "type" : "integer", + "format" : "int64" }, - "dictionaryId" : { - "type" : "string" + "logType" : { + "type" : "string", + "enum" : [ "INFO", "WARNING", "ERROR" ] }, - "dictElementName" : { + "logComponent" : { "type" : "string" }, - "dictElementShortName" : { + "message" : { "type" : "string" }, - "dictElementDesc" : { + "loop" : { + "$ref" : "#/definitions/Loop" + }, + "logInstant" : { + "type" : "integer", + "format" : "int64" + } + } + }, + "Number" : { + "type" : "object" + }, + "ExternalComponent" : { + "type" : "object", + "properties" : { + "state" : { + "$ref" : "#/definitions/ExternalComponentState" + }, + "componentName" : { "type" : "string" + } + } + }, + "LoopTemplate" : { + "type" : "object", + "properties" : { + "createdDate" : { + "type" : "integer", + "format" : "int64" + }, + "updatedDate" : { + "type" : "integer", + "format" : "int64" }, - "dictElementType" : { + "updatedBy" : { "type" : "string" }, "createdBy" : { "type" : "string" }, - "updatedBy" : { + "name" : { "type" : "string" }, - "lastUpdatedDate" : { + "dcaeBlueprintId" : { "type" : "string" + }, + "blueprint" : { + "type" : "string" + }, + "loopElementModelsUsed" : { + "type" : "array", + "uniqueItems" : true, + "items" : { + "$ref" : "#/definitions/LoopTemplateLoopElementModel" + } + }, + "modelService" : { + "$ref" : "#/definitions/Service" + }, + "maximumInstancesAllowed" : { + "type" : "integer", + "format" : "int32" + }, + "uniqueBlueprint" : { + "type" : "boolean" + }, + "allowedLoopType" : { + "type" : "string", + "enum" : [ "OPEN", "CLOSED", "HYBRID" ] } }, "x-className" : { "type" : "string", - "format" : "org.onap.clamp.clds.model.CldsDictionaryItem" + "format" : "org.onap.clamp.loop.template.LoopTemplate" } }, - "CldsToscaModel" : { + "ExternalComponentState" : { "type" : "object", "properties" : { - "revisionId" : { + "stateName" : { "type" : "string" }, - "toscaModelYaml" : { + "description" : { "type" : "string" }, - "version" : { - "type" : "number", - "format" : "double" + "level" : { + "type" : "integer", + "format" : "int32" + } + } + }, + "LoopElementModel" : { + "type" : "object", + "properties" : { + "createdDate" : { + "type" : "integer", + "format" : "int64" + }, + "updatedDate" : { + "type" : "integer", + "format" : "int64" }, - "toscaModelJson" : { + "updatedBy" : { "type" : "string" }, - "userId" : { + "createdBy" : { "type" : "string" }, - "createdDate" : { + "name" : { "type" : "string" }, - "lastUpdatedDate" : { + "dcaeBlueprintId" : { "type" : "string" }, - "id" : { + "blueprint" : { + "type" : "string" + }, + "loopElementType" : { + "type" : "string" + }, + "shortName" : { + "type" : "string" + }, + "policyModels" : { + "type" : "array", + "uniqueItems" : true, + "items" : { + "$ref" : "#/definitions/PolicyModel" + } + }, + "usedByLoopTemplates" : { + "type" : "array", + "uniqueItems" : true, + "items" : { + "$ref" : "#/definitions/LoopTemplateLoopElementModel" + } + } + } + }, + "CldsHealthCheck" : { + "type" : "object", + "properties" : { + "healthCheckComponent" : { "type" : "string" }, - "policyType" : { + "healthCheckStatus" : { "type" : "string" }, - "toscaModelName" : { + "description" : { "type" : "string" } }, "x-className" : { "type" : "string", - "format" : "org.onap.clamp.clds.model.CldsToscaModel" + "format" : "org.onap.clamp.clds.model.CldsHealthCheck" } } }