X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=docs%2Fswagger%2Fswagger.json;h=d35a59c51048619b3679f1cf5cedafba10974cee;hb=101193d07d757ce299c34fc61ea37b416138bf85;hp=079daa253ca7ed20a3255d25bda1865e8293b04c;hpb=3c86358f306e61bcc7d8f3143977a55faa0f4e62;p=clamp.git diff --git a/docs/swagger/swagger.json b/docs/swagger/swagger.json index 079daa25..d35a59c5 100644 --- a/docs/swagger/swagger.json +++ b/docs/swagger/swagger.json @@ -1,16 +1,16 @@ { "swagger" : "2.0", "info" : { - "version" : "4.0.3-SNAPSHOT", + "version" : "4.1.1-SNAPSHOT", "title" : "Clamp Rest API" }, - "host" : "localhost:46235", + "host" : "localhost:43819", "basePath" : "/restservices/clds/", "schemes" : [ "http" ], "paths" : { "/v2/loop/{loopName}" : { "get" : { - "operationId" : "route3", + "operationId" : "route167", "produces" : [ "application/json" ], "parameters" : [ { "name" : "loopName", @@ -26,13 +26,13 @@ } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route3" + "x-camelContextId" : "camel-5", + "x-routeId" : "route167" } }, "/v2/loop/delete/{loopName}" : { "put" : { - "operationId" : "route13", + "operationId" : "route177", "parameters" : [ { "name" : "loopName", "in" : "path", @@ -42,13 +42,13 @@ "responses" : { "200" : { } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route13" + "x-camelContextId" : "camel-5", + "x-routeId" : "route177" } }, - "/v2/loop/deployLoop/{loopName}" : { + "/v2/loop/deploy/{loopName}" : { "put" : { - "operationId" : "route8", + "operationId" : "route172", "produces" : [ "application/json" ], "parameters" : [ { "name" : "loopName", @@ -64,13 +64,13 @@ } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route8" + "x-camelContextId" : "camel-5", + "x-routeId" : "route172" } }, "/v2/loop/getAllNames" : { "get" : { - "operationId" : "route2", + "operationId" : "route166", "produces" : [ "application/json" ], "responses" : { "200" : { @@ -83,13 +83,13 @@ } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route2" + "x-camelContextId" : "camel-5", + "x-routeId" : "route166" } }, "/v2/loop/getstatus/{loopName}" : { "get" : { - "operationId" : "route14", + "operationId" : "route178", "produces" : [ "application/json" ], "parameters" : [ { "name" : "loopName", @@ -105,13 +105,13 @@ } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route14" + "x-camelContextId" : "camel-5", + "x-routeId" : "route178" } }, "/v2/loop/restart/{loopName}" : { "put" : { - "operationId" : "route11", + "operationId" : "route175", "produces" : [ "application/json" ], "parameters" : [ { "name" : "loopName", @@ -127,13 +127,13 @@ } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route11" + "x-camelContextId" : "camel-5", + "x-routeId" : "route175" } }, "/v2/loop/stop/{loopName}" : { "put" : { - "operationId" : "route10", + "operationId" : "route174", "produces" : [ "application/json" ], "parameters" : [ { "name" : "loopName", @@ -149,13 +149,13 @@ } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route10" + "x-camelContextId" : "camel-5", + "x-routeId" : "route174" } }, "/v2/loop/submit/{loopName}" : { "put" : { - "operationId" : "route12", + "operationId" : "route176", "produces" : [ "application/json" ], "parameters" : [ { "name" : "loopName", @@ -171,13 +171,13 @@ } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route12" + "x-camelContextId" : "camel-5", + "x-routeId" : "route176" } }, "/v2/loop/svgRepresentation/{loopName}" : { "get" : { - "operationId" : "route4", + "operationId" : "route168", "produces" : [ "application/xml" ], "parameters" : [ { "name" : "loopName", @@ -193,13 +193,13 @@ } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route4" + "x-camelContextId" : "camel-5", + "x-routeId" : "route168" } }, - "/v2/loop/undeployLoop/{loopName}" : { + "/v2/loop/undeploy/{loopName}" : { "put" : { - "operationId" : "route9", + "operationId" : "route173", "produces" : [ "application/json" ], "parameters" : [ { "name" : "loopName", @@ -215,13 +215,13 @@ } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route9" + "x-camelContextId" : "camel-5", + "x-routeId" : "route173" } }, "/v2/loop/updateGlobalProperties/{loopName}" : { "post" : { - "operationId" : "route5", + "operationId" : "route169", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { @@ -245,13 +245,13 @@ } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route5" + "x-camelContextId" : "camel-5", + "x-routeId" : "route169" } }, "/v2/loop/updateMicroservicePolicy/{loopName}" : { "post" : { - "operationId" : "route7", + "operationId" : "route171", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { @@ -275,13 +275,13 @@ } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route7" + "x-camelContextId" : "camel-5", + "x-routeId" : "route171" } }, "/v2/loop/updateOperationalPolicies/{loopName}" : { "post" : { - "operationId" : "route6", + "operationId" : "route170", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { @@ -305,13 +305,13 @@ } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route6" + "x-camelContextId" : "camel-5", + "x-routeId" : "route170" } }, "/v1/clds/action/{action}/{modelName}?test={test}" : { "put" : { - "operationId" : "route23", + "operationId" : "route187", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { @@ -335,13 +335,13 @@ "responses" : { "200" : { } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route23" + "x-camelContextId" : "camel-5", + "x-routeId" : "route187" } }, "/v1/clds/cldsDetails" : { "get" : { - "operationId" : "route15", + "operationId" : "route179", "produces" : [ "application/json" ], "responses" : { "200" : { @@ -351,13 +351,13 @@ } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route15" + "x-camelContextId" : "camel-5", + "x-routeId" : "route179" } }, "/v1/clds/cldsInfo" : { "get" : { - "operationId" : "route16", + "operationId" : "route180", "produces" : [ "application/json" ], "responses" : { "200" : { @@ -367,13 +367,13 @@ } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route16" + "x-camelContextId" : "camel-5", + "x-routeId" : "route180" } }, "/v1/clds/dcae/event?test={test}" : { "post" : { - "operationId" : "route24", + "operationId" : "route188", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { @@ -387,13 +387,13 @@ "responses" : { "200" : { } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route24" + "x-camelContextId" : "camel-5", + "x-routeId" : "route188" } }, "/v1/clds/deploy/{modelName}" : { "put" : { - "operationId" : "route26", + "operationId" : "route190", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { @@ -412,13 +412,13 @@ "responses" : { "200" : { } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route26" + "x-camelContextId" : "camel-5", + "x-routeId" : "route190" } }, "/v1/clds/model-names" : { "get" : { - "operationId" : "route22", + "operationId" : "route186", "produces" : [ "application/json" ], "responses" : { "200" : { @@ -428,13 +428,13 @@ } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route22" + "x-camelContextId" : "camel-5", + "x-routeId" : "route186" } }, "/v1/clds/model/{modelName}" : { "get" : { - "operationId" : "route20", + "operationId" : "route184", "produces" : [ "application/json" ], "parameters" : [ { "name" : "modelName", @@ -450,11 +450,11 @@ } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route20" + "x-camelContextId" : "camel-5", + "x-routeId" : "route184" }, "put" : { - "operationId" : "route21", + "operationId" : "route185", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { @@ -478,13 +478,13 @@ } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route21" + "x-camelContextId" : "camel-5", + "x-routeId" : "route185" } }, "/v1/clds/model/bpmn/{modelName}" : { "get" : { - "operationId" : "route18", + "operationId" : "route182", "produces" : [ "text/xml" ], "parameters" : [ { "name" : "modelName", @@ -495,13 +495,13 @@ "responses" : { "200" : { } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route18" + "x-camelContextId" : "camel-5", + "x-routeId" : "route182" } }, "/v1/clds/model/image/{modelName}" : { "get" : { - "operationId" : "route19", + "operationId" : "route183", "produces" : [ "text/xml" ], "parameters" : [ { "name" : "modelName", @@ -512,24 +512,24 @@ "responses" : { "200" : { } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route19" + "x-camelContextId" : "camel-5", + "x-routeId" : "route183" } }, "/v1/clds/properties" : { "get" : { - "operationId" : "route25", + "operationId" : "route189", "produces" : [ "application/json" ], "responses" : { "200" : { } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route25" + "x-camelContextId" : "camel-5", + "x-routeId" : "route189" } }, "/v1/clds/undeploy/{modelName}" : { "put" : { - "operationId" : "route27", + "operationId" : "route191", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { @@ -548,13 +548,13 @@ "responses" : { "200" : { } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route27" + "x-camelContextId" : "camel-5", + "x-routeId" : "route191" } }, "/v1/cldsTempate/template-names" : { "get" : { - "operationId" : "route32", + "operationId" : "route196", "produces" : [ "application/json" ], "responses" : { "200" : { @@ -564,13 +564,13 @@ } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route32" + "x-camelContextId" : "camel-5", + "x-routeId" : "route196" } }, "/v1/cldsTempate/template/{templateName}" : { "get" : { - "operationId" : "route30", + "operationId" : "route194", "produces" : [ "application/json" ], "parameters" : [ { "name" : "templateName", @@ -586,11 +586,11 @@ } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route30" + "x-camelContextId" : "camel-5", + "x-routeId" : "route194" }, "put" : { - "operationId" : "route31", + "operationId" : "route195", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { @@ -614,13 +614,13 @@ } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route31" + "x-camelContextId" : "camel-5", + "x-routeId" : "route195" } }, "/v1/cldsTempate/template/bpmn/{templateName}" : { "get" : { - "operationId" : "route28", + "operationId" : "route192", "produces" : [ "text/xml" ], "parameters" : [ { "name" : "templateName", @@ -631,13 +631,13 @@ "responses" : { "200" : { } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route28" + "x-camelContextId" : "camel-5", + "x-routeId" : "route192" } }, "/v1/cldsTempate/template/image/{templateName}" : { "get" : { - "operationId" : "route29", + "operationId" : "route193", "produces" : [ "text/xml" ], "parameters" : [ { "name" : "templateName", @@ -648,13 +648,13 @@ "responses" : { "200" : { } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route29" + "x-camelContextId" : "camel-5", + "x-routeId" : "route193" } }, "/v1/dictionary" : { "get" : { - "operationId" : "route40", + "operationId" : "route204", "produces" : [ "application/json" ], "responses" : { "200" : { @@ -664,13 +664,13 @@ } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route40" + "x-camelContextId" : "camel-5", + "x-routeId" : "route204" } }, "/v1/dictionary/{dictionaryName}" : { "put" : { - "operationId" : "route39", + "operationId" : "route203", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { @@ -694,8 +694,8 @@ } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route39" + "x-camelContextId" : "camel-5", + "x-routeId" : "route203" } }, "/v1/dictionary/{dictionaryName}/items" : { @@ -715,7 +715,7 @@ } } }, - "x-camelContextId" : "camel-1", + "x-camelContextId" : "camel-5", "x-routeId" : null }, "put" : { @@ -742,24 +742,24 @@ } } }, - "x-camelContextId" : "camel-1", + "x-camelContextId" : "camel-5", "x-routeId" : null } }, "/v1/healthcheck" : { "get" : { - "operationId" : "route17", + "operationId" : "route181", "produces" : [ "application/json" ], "responses" : { "200" : { } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route17" + "x-camelContextId" : "camel-5", + "x-routeId" : "route181" } }, "/v1/tosca/models" : { "get" : { - "operationId" : "route36", + "operationId" : "route200", "produces" : [ "application/json" ], "responses" : { "200" : { @@ -769,8 +769,8 @@ } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route36" + "x-camelContextId" : "camel-5", + "x-routeId" : "route200" } }, "/v1/tosca/models/{toscaModelName}" : { @@ -790,11 +790,11 @@ } } }, - "x-camelContextId" : "camel-1", + "x-camelContextId" : "camel-5", "x-routeId" : null }, "put" : { - "operationId" : "route33", + "operationId" : "route197", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { @@ -813,13 +813,13 @@ "responses" : { "200" : { } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route33" + "x-camelContextId" : "camel-5", + "x-routeId" : "route197" } }, "/v1/tosca/models/policyType/{policyType}" : { "get" : { - "operationId" : "route34", + "operationId" : "route198", "produces" : [ "application/json" ], "parameters" : [ { "name" : "policyType", @@ -835,19 +835,19 @@ } } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route34" + "x-camelContextId" : "camel-5", + "x-routeId" : "route198" } }, "/v1/user/getUser" : { "get" : { - "operationId" : "route41", + "operationId" : "route205", "produces" : [ "text/plain" ], "responses" : { "200" : { } }, - "x-camelContextId" : "camel-1", - "x-routeId" : "route41" + "x-camelContextId" : "camel-5", + "x-routeId" : "route205" } } }, @@ -883,6 +883,12 @@ "type" : "string", "enum" : [ "DESIGN", "SUBMITTED", "DEPLOYED", "RUNNING", "STOPPED", "IN_ERROR", "WAITING" ] }, + "components" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/definitions/ExternalComponent" + } + }, "operationalPolicies" : { "type" : "array", "uniqueItems" : true, @@ -913,12 +919,12 @@ "JsonArray" : { "type" : "object", "properties" : { - "asString" : { - "type" : "string" - }, "asBoolean" : { "type" : "boolean" }, + "asString" : { + "type" : "string" + }, "asNumber" : { "$ref" : "#/definitions/Number" }, @@ -955,29 +961,29 @@ "type" : "integer", "format" : "int32" }, - "jsonPrimitive" : { - "type" : "boolean" + "asJsonObject" : { + "$ref" : "#/definitions/JsonObject" }, - "jsonNull" : { + "asJsonPrimitive" : { + "$ref" : "#/definitions/JsonPrimitive" + }, + "asJsonNull" : { + "$ref" : "#/definitions/JsonNull" + }, + "jsonArray" : { "type" : "boolean" }, "jsonObject" : { "type" : "boolean" }, - "asJsonObject" : { - "$ref" : "#/definitions/JsonObject" + "jsonPrimitive" : { + "type" : "boolean" }, - "jsonArray" : { + "jsonNull" : { "type" : "boolean" }, "asJsonArray" : { "$ref" : "#/definitions/JsonArray" - }, - "asJsonPrimitive" : { - "$ref" : "#/definitions/JsonPrimitive" - }, - "asJsonNull" : { - "$ref" : "#/definitions/JsonNull" } }, "x-className" : { @@ -996,6 +1002,9 @@ "type" : "string", "enum" : [ "INFO", "WARNING", "ERROR" ] }, + "logComponent" : { + "type" : "string" + }, "message" : { "type" : "string" }, @@ -1014,6 +1023,9 @@ "JsonPrimitive" : { "type" : "object", "properties" : { + "asBoolean" : { + "type" : "boolean" + }, "boolean" : { "type" : "boolean" }, @@ -1023,9 +1035,6 @@ "asString" : { "type" : "string" }, - "asBoolean" : { - "type" : "boolean" - }, "asNumber" : { "$ref" : "#/definitions/Number" }, @@ -1065,29 +1074,29 @@ "string" : { "type" : "boolean" }, - "jsonPrimitive" : { - "type" : "boolean" + "asJsonObject" : { + "$ref" : "#/definitions/JsonObject" }, - "jsonNull" : { + "asJsonPrimitive" : { + "$ref" : "#/definitions/JsonPrimitive" + }, + "asJsonNull" : { + "$ref" : "#/definitions/JsonNull" + }, + "jsonArray" : { "type" : "boolean" }, "jsonObject" : { "type" : "boolean" }, - "asJsonObject" : { - "$ref" : "#/definitions/JsonObject" + "jsonPrimitive" : { + "type" : "boolean" }, - "jsonArray" : { + "jsonNull" : { "type" : "boolean" }, "asJsonArray" : { "$ref" : "#/definitions/JsonArray" - }, - "asJsonPrimitive" : { - "$ref" : "#/definitions/JsonPrimitive" - }, - "asJsonNull" : { - "$ref" : "#/definitions/JsonNull" } } }, @@ -1128,36 +1137,21 @@ "JsonObject" : { "type" : "object", "properties" : { - "jsonPrimitive" : { - "type" : "boolean" - }, - "jsonNull" : { - "type" : "boolean" - }, - "jsonObject" : { + "asBoolean" : { "type" : "boolean" }, "asJsonObject" : { "$ref" : "#/definitions/JsonObject" }, - "asString" : { - "type" : "string" - }, - "jsonArray" : { - "type" : "boolean" - }, - "asJsonArray" : { - "$ref" : "#/definitions/JsonArray" - }, "asJsonPrimitive" : { "$ref" : "#/definitions/JsonPrimitive" }, + "asString" : { + "type" : "string" + }, "asJsonNull" : { "$ref" : "#/definitions/JsonNull" }, - "asBoolean" : { - "type" : "boolean" - }, "asNumber" : { "$ref" : "#/definitions/Number" }, @@ -1193,6 +1187,21 @@ "asShort" : { "type" : "integer", "format" : "int32" + }, + "jsonArray" : { + "type" : "boolean" + }, + "jsonObject" : { + "type" : "boolean" + }, + "jsonPrimitive" : { + "type" : "boolean" + }, + "jsonNull" : { + "type" : "boolean" + }, + "asJsonArray" : { + "$ref" : "#/definitions/JsonArray" } }, "x-className" : { @@ -1200,6 +1209,17 @@ "format" : "com.google.gson.JsonObject" } }, + "ExternalComponent" : { + "type" : "object", + "properties" : { + "state" : { + "$ref" : "#/definitions/ExternalComponentState" + }, + "componentName" : { + "type" : "string" + } + } + }, "OperationalPolicy" : { "type" : "object", "properties" : { @@ -1217,39 +1237,39 @@ } } }, - "JsonNull" : { + "ExternalComponentState" : { "type" : "object", "properties" : { - "jsonPrimitive" : { - "type" : "boolean" + "stateName" : { + "type" : "string" }, - "jsonNull" : { - "type" : "boolean" + "description" : { + "type" : "string" }, - "jsonObject" : { + "level" : { + "type" : "integer", + "format" : "int32" + } + } + }, + "JsonNull" : { + "type" : "object", + "properties" : { + "asBoolean" : { "type" : "boolean" }, "asJsonObject" : { "$ref" : "#/definitions/JsonObject" }, - "asString" : { - "type" : "string" - }, - "jsonArray" : { - "type" : "boolean" - }, - "asJsonArray" : { - "$ref" : "#/definitions/JsonArray" - }, "asJsonPrimitive" : { "$ref" : "#/definitions/JsonPrimitive" }, + "asString" : { + "type" : "string" + }, "asJsonNull" : { "$ref" : "#/definitions/JsonNull" }, - "asBoolean" : { - "type" : "boolean" - }, "asNumber" : { "$ref" : "#/definitions/Number" }, @@ -1285,6 +1305,21 @@ "asShort" : { "type" : "integer", "format" : "int32" + }, + "jsonArray" : { + "type" : "boolean" + }, + "jsonObject" : { + "type" : "boolean" + }, + "jsonPrimitive" : { + "type" : "boolean" + }, + "jsonNull" : { + "type" : "boolean" + }, + "asJsonArray" : { + "$ref" : "#/definitions/JsonArray" } } },