aboutsummaryrefslogtreecommitdiffstats
path: root/docs/swagger/swagger.json
diff options
context:
space:
mode:
authorsebdet <sebastien.determe@intl.att.com>2020-03-04 15:47:39 -0800
committersebdet <sebastien.determe@intl.att.com>2020-03-09 09:07:45 -0700
commit2dd4e997c1ccf5dab4dfb7665ce74c0fd1f13e49 (patch)
treeddea40175352505c75e8eac343587e62c99a49dc /docs/swagger/swagger.json
parent897a3e004a858ef68d989dad15dde91a69e151a5 (diff)
Rework tosca converter
New code to convert the Policy Tosca Yaml to Json Schema for the Clamp UI Issue-ID: CLAMP-647 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Id15ddedc1910f6a40bf6e407b34e343e00135571
Diffstat (limited to 'docs/swagger/swagger.json')
-rw-r--r--docs/swagger/swagger.json380
1 files changed, 190 insertions, 190 deletions
diff --git a/docs/swagger/swagger.json b/docs/swagger/swagger.json
index d9a0b8279..e35fba278 100644
--- a/docs/swagger/swagger.json
+++ b/docs/swagger/swagger.json
@@ -4,13 +4,13 @@
"version" : "5.0.0-SNAPSHOT",
"title" : "Clamp Rest API"
},
- "host" : "localhost:39099",
+ "host" : "localhost:40597",
"basePath" : "/restservices/clds/",
"schemes" : [ "http" ],
"paths" : {
"/v2/dictionary" : {
"get" : {
- "operationId" : "route49",
+ "operationId" : "route80",
"produces" : [ "application/json" ],
"responses" : {
"200" : {
@@ -20,11 +20,11 @@
}
}
},
- "x-camelContextId" : "camel-2",
- "x-routeId" : "route49"
+ "x-camelContextId" : "camel-3",
+ "x-routeId" : "route80"
},
"put" : {
- "operationId" : "route51",
+ "operationId" : "route82",
"consumes" : [ "application/json" ],
"produces" : [ "application/json" ],
"parameters" : [ {
@@ -43,8 +43,8 @@
}
}
},
- "x-camelContextId" : "camel-2",
- "x-routeId" : "route51"
+ "x-camelContextId" : "camel-3",
+ "x-routeId" : "route82"
}
},
"/v2/dictionary/{dictionaryName}" : {
@@ -64,7 +64,7 @@
}
}
},
- "x-camelContextId" : "camel-2",
+ "x-camelContextId" : "camel-3",
"x-routeId" : null
}
},
@@ -93,11 +93,11 @@
}
}
},
- "x-camelContextId" : "camel-2",
+ "x-camelContextId" : "camel-3",
"x-routeId" : null
},
"delete" : {
- "operationId" : "route53",
+ "operationId" : "route84",
"produces" : [ "application/json" ],
"parameters" : [ {
"name" : "name",
@@ -108,8 +108,8 @@
"responses" : {
"200" : { }
},
- "x-camelContextId" : "camel-2",
- "x-routeId" : "route53"
+ "x-camelContextId" : "camel-3",
+ "x-routeId" : "route84"
}
},
"/v2/dictionary/{name}/elements/{shortName}" : {
@@ -129,7 +129,7 @@
"responses" : {
"200" : { }
},
- "x-camelContextId" : "camel-2",
+ "x-camelContextId" : "camel-3",
"x-routeId" : null
}
},
@@ -147,13 +147,13 @@
}
}
},
- "x-camelContextId" : "camel-2",
+ "x-camelContextId" : "camel-3",
"x-routeId" : null
}
},
"/v2/loop/{loopName}" : {
"get" : {
- "operationId" : "route34",
+ "operationId" : "route65",
"produces" : [ "application/json" ],
"parameters" : [ {
"name" : "loopName",
@@ -169,13 +169,13 @@
}
}
},
- "x-camelContextId" : "camel-2",
- "x-routeId" : "route34"
+ "x-camelContextId" : "camel-3",
+ "x-routeId" : "route65"
}
},
"/v2/loop/delete/{loopName}" : {
"put" : {
- "operationId" : "route45",
+ "operationId" : "route76",
"parameters" : [ {
"name" : "loopName",
"in" : "path",
@@ -185,13 +185,13 @@
"responses" : {
"200" : { }
},
- "x-camelContextId" : "camel-2",
- "x-routeId" : "route45"
+ "x-camelContextId" : "camel-3",
+ "x-routeId" : "route76"
}
},
"/v2/loop/deploy/{loopName}" : {
"put" : {
- "operationId" : "route39",
+ "operationId" : "route70",
"produces" : [ "application/json" ],
"parameters" : [ {
"name" : "loopName",
@@ -207,13 +207,13 @@
}
}
},
- "x-camelContextId" : "camel-2",
- "x-routeId" : "route39"
+ "x-camelContextId" : "camel-3",
+ "x-routeId" : "route70"
}
},
"/v2/loop/getAllNames" : {
"get" : {
- "operationId" : "route33",
+ "operationId" : "route64",
"produces" : [ "application/json" ],
"responses" : {
"200" : {
@@ -226,13 +226,13 @@
}
}
},
- "x-camelContextId" : "camel-2",
- "x-routeId" : "route33"
+ "x-camelContextId" : "camel-3",
+ "x-routeId" : "route64"
}
},
"/v2/loop/getstatus/{loopName}" : {
"get" : {
- "operationId" : "route46",
+ "operationId" : "route77",
"produces" : [ "application/json" ],
"parameters" : [ {
"name" : "loopName",
@@ -248,13 +248,13 @@
}
}
},
- "x-camelContextId" : "camel-2",
- "x-routeId" : "route46"
+ "x-camelContextId" : "camel-3",
+ "x-routeId" : "route77"
}
},
"/v2/loop/refreshOpPolicyJsonSchema/{loopName}" : {
"put" : {
- "operationId" : "route40",
+ "operationId" : "route71",
"produces" : [ "application/json" ],
"parameters" : [ {
"name" : "loopName",
@@ -270,13 +270,13 @@
}
}
},
- "x-camelContextId" : "camel-2",
- "x-routeId" : "route40"
+ "x-camelContextId" : "camel-3",
+ "x-routeId" : "route71"
}
},
"/v2/loop/restart/{loopName}" : {
"put" : {
- "operationId" : "route43",
+ "operationId" : "route74",
"produces" : [ "application/json" ],
"parameters" : [ {
"name" : "loopName",
@@ -292,13 +292,13 @@
}
}
},
- "x-camelContextId" : "camel-2",
- "x-routeId" : "route43"
+ "x-camelContextId" : "camel-3",
+ "x-routeId" : "route74"
}
},
"/v2/loop/stop/{loopName}" : {
"put" : {
- "operationId" : "route42",
+ "operationId" : "route73",
"produces" : [ "application/json" ],
"parameters" : [ {
"name" : "loopName",
@@ -314,13 +314,13 @@
}
}
},
- "x-camelContextId" : "camel-2",
- "x-routeId" : "route42"
+ "x-camelContextId" : "camel-3",
+ "x-routeId" : "route73"
}
},
"/v2/loop/submit/{loopName}" : {
"put" : {
- "operationId" : "route44",
+ "operationId" : "route75",
"produces" : [ "application/json" ],
"parameters" : [ {
"name" : "loopName",
@@ -336,13 +336,13 @@
}
}
},
- "x-camelContextId" : "camel-2",
- "x-routeId" : "route44"
+ "x-camelContextId" : "camel-3",
+ "x-routeId" : "route75"
}
},
"/v2/loop/svgRepresentation/{loopName}" : {
"get" : {
- "operationId" : "route35",
+ "operationId" : "route66",
"produces" : [ "application/xml" ],
"parameters" : [ {
"name" : "loopName",
@@ -358,13 +358,13 @@
}
}
},
- "x-camelContextId" : "camel-2",
- "x-routeId" : "route35"
+ "x-camelContextId" : "camel-3",
+ "x-routeId" : "route66"
}
},
"/v2/loop/undeploy/{loopName}" : {
"put" : {
- "operationId" : "route41",
+ "operationId" : "route72",
"produces" : [ "application/json" ],
"parameters" : [ {
"name" : "loopName",
@@ -380,13 +380,13 @@
}
}
},
- "x-camelContextId" : "camel-2",
- "x-routeId" : "route41"
+ "x-camelContextId" : "camel-3",
+ "x-routeId" : "route72"
}
},
"/v2/loop/updateGlobalProperties/{loopName}" : {
"post" : {
- "operationId" : "route36",
+ "operationId" : "route67",
"consumes" : [ "application/json" ],
"produces" : [ "application/json" ],
"parameters" : [ {
@@ -410,13 +410,13 @@
}
}
},
- "x-camelContextId" : "camel-2",
- "x-routeId" : "route36"
+ "x-camelContextId" : "camel-3",
+ "x-routeId" : "route67"
}
},
"/v2/loop/updateMicroservicePolicy/{loopName}" : {
"post" : {
- "operationId" : "route38",
+ "operationId" : "route69",
"consumes" : [ "application/json" ],
"produces" : [ "application/json" ],
"parameters" : [ {
@@ -440,13 +440,13 @@
}
}
},
- "x-camelContextId" : "camel-2",
- "x-routeId" : "route38"
+ "x-camelContextId" : "camel-3",
+ "x-routeId" : "route69"
}
},
"/v2/loop/updateOperationalPolicies/{loopName}" : {
"post" : {
- "operationId" : "route37",
+ "operationId" : "route68",
"consumes" : [ "application/json" ],
"produces" : [ "application/json" ],
"parameters" : [ {
@@ -470,13 +470,13 @@
}
}
},
- "x-camelContextId" : "camel-2",
- "x-routeId" : "route37"
+ "x-camelContextId" : "camel-3",
+ "x-routeId" : "route68"
}
},
"/v2/policyToscaModels" : {
"get" : {
- "operationId" : "route56",
+ "operationId" : "route87",
"produces" : [ "application/json" ],
"responses" : {
"200" : {
@@ -486,8 +486,8 @@
}
}
},
- "x-camelContextId" : "camel-2",
- "x-routeId" : "route56"
+ "x-camelContextId" : "camel-3",
+ "x-routeId" : "route87"
}
},
"/v2/policyToscaModels/{policyModelType}" : {
@@ -507,11 +507,11 @@
}
}
},
- "x-camelContextId" : "camel-2",
+ "x-camelContextId" : "camel-3",
"x-routeId" : null
},
"put" : {
- "operationId" : "route57",
+ "operationId" : "route88",
"consumes" : [ "plain/text" ],
"produces" : [ "application/json" ],
"parameters" : [ {
@@ -535,8 +535,8 @@
}
}
},
- "x-camelContextId" : "camel-2",
- "x-routeId" : "route57"
+ "x-camelContextId" : "camel-3",
+ "x-routeId" : "route88"
}
},
"/v2/policyToscaModels/yaml/{policyModelType}" : {
@@ -556,13 +556,13 @@
}
}
},
- "x-camelContextId" : "camel-2",
+ "x-camelContextId" : "camel-3",
"x-routeId" : null
}
},
"/v2/templates" : {
"get" : {
- "operationId" : "route60",
+ "operationId" : "route91",
"produces" : [ "application/json" ],
"responses" : {
"200" : {
@@ -572,8 +572,8 @@
}
}
},
- "x-camelContextId" : "camel-2",
- "x-routeId" : "route60"
+ "x-camelContextId" : "camel-3",
+ "x-routeId" : "route91"
}
},
"/v2/templates/{templateName}" : {
@@ -593,7 +593,7 @@
}
}
},
- "x-camelContextId" : "camel-2",
+ "x-camelContextId" : "camel-3",
"x-routeId" : null
}
},
@@ -611,13 +611,13 @@
}
}
},
- "x-camelContextId" : "camel-2",
+ "x-camelContextId" : "camel-3",
"x-routeId" : null
}
},
"/v1/healthcheck" : {
"get" : {
- "operationId" : "route61",
+ "operationId" : "route92",
"produces" : [ "application/json" ],
"responses" : {
"200" : {
@@ -627,19 +627,19 @@
}
}
},
- "x-camelContextId" : "camel-2",
- "x-routeId" : "route61"
+ "x-camelContextId" : "camel-3",
+ "x-routeId" : "route92"
}
},
"/v1/user/getUser" : {
"get" : {
- "operationId" : "route62",
+ "operationId" : "route93",
"produces" : [ "text/plain" ],
"responses" : {
"200" : { }
},
- "x-camelContextId" : "camel-2",
- "x-routeId" : "route62"
+ "x-camelContextId" : "camel-3",
+ "x-routeId" : "route93"
}
}
},
@@ -803,31 +803,34 @@
"JsonPrimitive" : {
"type" : "object",
"properties" : {
- "asInt" : {
- "type" : "integer",
- "format" : "int32"
- },
- "asDouble" : {
- "type" : "number",
- "format" : "double"
- },
- "asLong" : {
- "type" : "integer",
- "format" : "int64"
- },
- "boolean" : {
+ "asBoolean" : {
"type" : "boolean"
},
- "asBoolean" : {
+ "number" : {
"type" : "boolean"
},
+ "asString" : {
+ "type" : "string"
+ },
"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"
@@ -845,27 +848,21 @@
"type" : "integer",
"format" : "int32"
},
- "number" : {
+ "boolean" : {
"type" : "boolean"
},
- "asString" : {
- "type" : "string"
- },
"string" : {
"type" : "boolean"
},
- "asJsonNull" : {
- "$ref" : "#/definitions/JsonNull"
- },
"jsonObject" : {
"type" : "boolean"
},
- "asJsonObject" : {
- "$ref" : "#/definitions/JsonObject"
- },
"asJsonArray" : {
"$ref" : "#/definitions/JsonArray"
},
+ "asJsonObject" : {
+ "$ref" : "#/definitions/JsonObject"
+ },
"jsonArray" : {
"type" : "boolean"
},
@@ -877,6 +874,9 @@
},
"asJsonPrimitive" : {
"$ref" : "#/definitions/JsonPrimitive"
+ },
+ "asJsonNull" : {
+ "$ref" : "#/definitions/JsonNull"
}
}
},
@@ -909,7 +909,7 @@
"pdpGroup" : {
"type" : "string"
},
- "pdpSubGroup" : {
+ "pdpSubgroup" : {
"type" : "string"
},
"policyModel" : {
@@ -952,31 +952,55 @@
"JsonObject" : {
"type" : "object",
"properties" : {
- "asInt" : {
- "type" : "integer",
- "format" : "int32"
+ "asBoolean" : {
+ "type" : "boolean"
},
- "asDouble" : {
- "type" : "number",
- "format" : "double"
+ "jsonObject" : {
+ "type" : "boolean"
},
- "asLong" : {
- "type" : "integer",
- "format" : "int64"
+ "asJsonArray" : {
+ "$ref" : "#/definitions/JsonArray"
},
- "asBoolean" : {
+ "asJsonObject" : {
+ "$ref" : "#/definitions/JsonObject"
+ },
+ "asString" : {
+ "type" : "string"
+ },
+ "jsonArray" : {
"type" : "boolean"
},
+ "jsonPrimitive" : {
+ "type" : "boolean"
+ },
+ "jsonNull" : {
+ "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"
@@ -993,30 +1017,6 @@
"asShort" : {
"type" : "integer",
"format" : "int32"
- },
- "jsonObject" : {
- "type" : "boolean"
- },
- "asJsonObject" : {
- "$ref" : "#/definitions/JsonObject"
- },
- "asString" : {
- "type" : "string"
- },
- "asJsonArray" : {
- "$ref" : "#/definitions/JsonArray"
- },
- "jsonArray" : {
- "type" : "boolean"
- },
- "jsonPrimitive" : {
- "type" : "boolean"
- },
- "jsonNull" : {
- "type" : "boolean"
- },
- "asJsonPrimitive" : {
- "$ref" : "#/definitions/JsonPrimitive"
}
},
"x-className" : {
@@ -1133,7 +1133,7 @@
"pdpGroup" : {
"type" : "string"
},
- "pdpSubGroup" : {
+ "pdpSubgroup" : {
"type" : "string"
},
"policyModel" : {
@@ -1153,31 +1153,55 @@
"JsonNull" : {
"type" : "object",
"properties" : {
- "asInt" : {
- "type" : "integer",
- "format" : "int32"
+ "asBoolean" : {
+ "type" : "boolean"
},
- "asDouble" : {
- "type" : "number",
- "format" : "double"
+ "jsonObject" : {
+ "type" : "boolean"
},
- "asLong" : {
- "type" : "integer",
- "format" : "int64"
+ "asJsonArray" : {
+ "$ref" : "#/definitions/JsonArray"
},
- "asBoolean" : {
+ "asJsonObject" : {
+ "$ref" : "#/definitions/JsonObject"
+ },
+ "asString" : {
+ "type" : "string"
+ },
+ "jsonArray" : {
+ "type" : "boolean"
+ },
+ "jsonPrimitive" : {
"type" : "boolean"
},
+ "jsonNull" : {
+ "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"
@@ -1194,58 +1218,37 @@
"asShort" : {
"type" : "integer",
"format" : "int32"
- },
- "jsonObject" : {
- "type" : "boolean"
- },
- "asJsonObject" : {
- "$ref" : "#/definitions/JsonObject"
- },
- "asString" : {
- "type" : "string"
- },
- "asJsonArray" : {
- "$ref" : "#/definitions/JsonArray"
- },
- "jsonArray" : {
- "type" : "boolean"
- },
- "jsonPrimitive" : {
- "type" : "boolean"
- },
- "jsonNull" : {
- "type" : "boolean"
- },
- "asJsonPrimitive" : {
- "$ref" : "#/definitions/JsonPrimitive"
}
}
},
"JsonArray" : {
"type" : "object",
"properties" : {
- "asInt" : {
- "type" : "integer",
- "format" : "int32"
- },
- "asDouble" : {
- "type" : "number",
- "format" : "double"
- },
- "asLong" : {
- "type" : "integer",
- "format" : "int64"
- },
"asBoolean" : {
"type" : "boolean"
},
+ "asString" : {
+ "type" : "string"
+ },
"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"
@@ -1263,21 +1266,15 @@
"type" : "integer",
"format" : "int32"
},
- "asString" : {
- "type" : "string"
- },
- "asJsonNull" : {
- "$ref" : "#/definitions/JsonNull"
- },
"jsonObject" : {
"type" : "boolean"
},
- "asJsonObject" : {
- "$ref" : "#/definitions/JsonObject"
- },
"asJsonArray" : {
"$ref" : "#/definitions/JsonArray"
},
+ "asJsonObject" : {
+ "$ref" : "#/definitions/JsonObject"
+ },
"jsonArray" : {
"type" : "boolean"
},
@@ -1289,6 +1286,9 @@
},
"asJsonPrimitive" : {
"$ref" : "#/definitions/JsonPrimitive"
+ },
+ "asJsonNull" : {
+ "$ref" : "#/definitions/JsonNull"
}
},
"x-className" : {