Fix the new tosca converter
[clamp.git] / docs / swagger / swagger.json
index 5206784..e1e1337 100644 (file)
@@ -4,13 +4,29 @@
     "version" : "5.0.0-SNAPSHOT",
     "title" : "Clamp Rest API"
   },
-  "host" : "localhost:33699",
+  "host" : "localhost:41607",
   "basePath" : "/restservices/clds/",
   "schemes" : [ "http" ],
   "paths" : {
+    "/v2/clampInformation" : {
+      "get" : {
+        "operationId" : "route35",
+        "produces" : [ "application/json" ],
+        "responses" : {
+          "200" : {
+            "description" : "Output type",
+            "schema" : {
+              "$ref" : "#/definitions/ClampInformation"
+            }
+          }
+        },
+        "x-camelContextId" : "camel-1",
+        "x-routeId" : "route35"
+      }
+    },
     "/v2/dictionary" : {
       "get" : {
-        "operationId" : "route18",
+        "operationId" : "route21",
         "produces" : [ "application/json" ],
         "responses" : {
           "200" : {
           }
         },
         "x-camelContextId" : "camel-1",
-        "x-routeId" : "route18"
+        "x-routeId" : "route21"
       },
       "put" : {
-        "operationId" : "route20",
+        "operationId" : "route23",
         "consumes" : [ "application/json" ],
         "produces" : [ "application/json" ],
         "parameters" : [ {
@@ -44,7 +60,7 @@
           }
         },
         "x-camelContextId" : "camel-1",
-        "x-routeId" : "route20"
+        "x-routeId" : "route23"
       }
     },
     "/v2/dictionary/{dictionaryName}" : {
         "x-routeId" : null
       },
       "delete" : {
-        "operationId" : "route22",
+        "operationId" : "route25",
         "produces" : [ "application/json" ],
         "parameters" : [ {
           "name" : "name",
           "200" : { }
         },
         "x-camelContextId" : "camel-1",
-        "x-routeId" : "route22"
+        "x-routeId" : "route25"
       }
     },
     "/v2/dictionary/{name}/elements/{shortName}" : {
         "x-routeId" : "route3"
       }
     },
+    "/v2/loop/addOperationaPolicy/{loopName}/policyModel/{policyType}/{policyVersion}" : {
+      "put" : {
+        "operationId" : "route16",
+        "produces" : [ "application/json" ],
+        "parameters" : [ {
+          "name" : "loopName",
+          "in" : "path",
+          "required" : true,
+          "type" : "string"
+        }, {
+          "name" : "policyType",
+          "in" : "path",
+          "required" : true,
+          "type" : "string"
+        }, {
+          "name" : "policyVersion",
+          "in" : "path",
+          "required" : true,
+          "type" : "string"
+        } ],
+        "responses" : {
+          "200" : {
+            "description" : "Output type",
+            "schema" : {
+              "$ref" : "#/definitions/Loop"
+            }
+          }
+        },
+        "x-camelContextId" : "camel-1",
+        "x-routeId" : "route16"
+      }
+    },
+    "/v2/loop/create/{loopName}?templateName={templateName}" : {
+      "post" : {
+        "operationId" : "route18",
+        "consumes" : [ "application/json" ],
+        "produces" : [ "application/json" ],
+        "parameters" : [ {
+          "name" : "loopName}?templateName={templateName",
+          "in" : "path",
+          "required" : true,
+          "type" : "string"
+        } ],
+        "responses" : {
+          "200" : {
+            "description" : "Output type",
+            "schema" : {
+              "$ref" : "#/definitions/Loop"
+            }
+          }
+        },
+        "x-camelContextId" : "camel-1",
+        "x-routeId" : "route18"
+      }
+    },
     "/v2/loop/delete/{loopName}" : {
       "put" : {
         "operationId" : "route14",
         "x-routeId" : "route9"
       }
     },
+    "/v2/loop/removeOperationaPolicy/{loopName}/policyModel/{policyType}/{policyVersion}" : {
+      "put" : {
+        "operationId" : "route17",
+        "produces" : [ "application/json" ],
+        "parameters" : [ {
+          "name" : "loopName",
+          "in" : "path",
+          "required" : true,
+          "type" : "string"
+        }, {
+          "name" : "policyType",
+          "in" : "path",
+          "required" : true,
+          "type" : "string"
+        }, {
+          "name" : "policyVersion",
+          "in" : "path",
+          "required" : true,
+          "type" : "string"
+        } ],
+        "responses" : {
+          "200" : {
+            "description" : "Output type",
+            "schema" : {
+              "$ref" : "#/definitions/Loop"
+            }
+          }
+        },
+        "x-camelContextId" : "camel-1",
+        "x-routeId" : "route17"
+      }
+    },
     "/v2/loop/restart/{loopName}" : {
       "put" : {
         "operationId" : "route12",
     },
     "/v2/policyToscaModels" : {
       "get" : {
-        "operationId" : "route25",
+        "operationId" : "route28",
         "produces" : [ "application/json" ],
         "responses" : {
           "200" : {
           }
         },
         "x-camelContextId" : "camel-1",
-        "x-routeId" : "route25"
+        "x-routeId" : "route28"
+      },
+      "post" : {
+        "operationId" : "route29",
+        "consumes" : [ "plain/text" ],
+        "produces" : [ "application/json" ],
+        "parameters" : [ {
+          "in" : "body",
+          "name" : "body",
+          "required" : true,
+          "schema" : {
+            "type" : "string"
+          }
+        } ],
+        "responses" : {
+          "200" : {
+            "description" : "Output type",
+            "schema" : {
+              "$ref" : "#/definitions/PolicyModel"
+            }
+          }
+        },
+        "x-camelContextId" : "camel-1",
+        "x-routeId" : "route29"
       }
     },
-    "/v2/policyToscaModels/{policyModelType}" : {
+    "/v2/policyToscaModels/{policyModelType}/{policyModelVersion}" : {
       "get" : {
         "produces" : [ "application/json" ],
         "parameters" : [ {
           "in" : "path",
           "required" : true,
           "type" : "string"
+        }, {
+          "name" : "policyModelVersion",
+          "in" : "path",
+          "required" : true,
+          "type" : "string"
         } ],
         "responses" : {
           "200" : {
         "x-routeId" : null
       },
       "put" : {
-        "operationId" : "route26",
+        "operationId" : "route30",
         "consumes" : [ "plain/text" ],
         "produces" : [ "application/json" ],
         "parameters" : [ {
           "in" : "path",
           "required" : true,
           "type" : "string"
+        }, {
+          "name" : "policyModelVersion",
+          "in" : "path",
+          "required" : true,
+          "type" : "string"
         }, {
           "in" : "body",
           "name" : "body",
           }
         },
         "x-camelContextId" : "camel-1",
-        "x-routeId" : "route26"
+        "x-routeId" : "route30"
       }
     },
-    "/v2/policyToscaModels/yaml/{policyModelType}" : {
+    "/v2/policyToscaModels/yaml/{policyModelType}/{policyModelVersion}" : {
       "get" : {
         "produces" : [ "application/json" ],
         "parameters" : [ {
           "in" : "path",
           "required" : true,
           "type" : "string"
+        }, {
+          "name" : "policyModelVersion",
+          "in" : "path",
+          "required" : true,
+          "type" : "string"
         } ],
         "responses" : {
           "200" : {
     },
     "/v2/templates" : {
       "get" : {
-        "operationId" : "route29",
+        "operationId" : "route34",
         "produces" : [ "application/json" ],
         "responses" : {
           "200" : {
           }
         },
         "x-camelContextId" : "camel-1",
-        "x-routeId" : "route29"
+        "x-routeId" : "route34"
       }
     },
     "/v2/templates/{templateName}" : {
         "x-routeId" : null
       }
     },
-    "/v2/templates/names" : {
+    "/v2/templates/{templateName}/svgRepresentation" : {
       "get" : {
-        "produces" : [ "application/json" ],
+        "produces" : [ "application/xml" ],
+        "parameters" : [ {
+          "name" : "templateName",
+          "in" : "path",
+          "required" : true,
+          "type" : "string"
+        } ],
         "responses" : {
           "200" : {
             "description" : "Output type",
             "schema" : {
-              "type" : "array",
-              "items" : {
-                "type" : "string"
-              }
+              "type" : "string"
             }
           }
         },
         "x-routeId" : null
       }
     },
-    "/v1/clds/cldsInfo" : {
+    "/v2/templates/names" : {
       "get" : {
-        "operationId" : "route30",
         "produces" : [ "application/json" ],
         "responses" : {
           "200" : {
             "description" : "Output type",
             "schema" : {
-              "$ref" : "#/definitions/CldsInfo"
+              "type" : "array",
+              "items" : {
+                "type" : "string"
+              }
             }
           }
         },
         "x-camelContextId" : "camel-1",
-        "x-routeId" : "route30"
+        "x-routeId" : null
       }
     },
     "/v1/healthcheck" : {
       "get" : {
-        "operationId" : "route31",
+        "operationId" : "route36",
         "produces" : [ "application/json" ],
         "responses" : {
           "200" : {
           }
         },
         "x-camelContextId" : "camel-1",
-        "x-routeId" : "route31"
+        "x-routeId" : "route36"
       }
     },
     "/v1/user/getUser" : {
       "get" : {
-        "operationId" : "route32",
+        "operationId" : "route37",
         "produces" : [ "text/plain" ],
         "responses" : {
           "200" : { }
         },
         "x-camelContextId" : "camel-1",
-        "x-routeId" : "route32"
+        "x-routeId" : "route37"
       }
     }
   },
   "definitions" : {
+    "ClampInformation" : {
+      "type" : "object",
+      "properties" : {
+        "userName" : {
+          "type" : "string"
+        },
+        "cldsVersion" : {
+          "type" : "string"
+        },
+        "allPermissions" : {
+          "type" : "array",
+          "items" : {
+            "type" : "string"
+          }
+        }
+      },
+      "x-className" : {
+        "type" : "string",
+        "format" : "org.onap.clamp.clds.model.ClampInformation"
+      }
+    },
     "Dictionary" : {
       "type" : "object",
       "properties" : {
     "JsonPrimitive" : {
       "type" : "object",
       "properties" : {
+        "asInt" : {
+          "type" : "integer",
+          "format" : "int32"
+        },
+        "asDouble" : {
+          "type" : "number",
+          "format" : "double"
+        },
+        "asLong" : {
+          "type" : "integer",
+          "format" : "int64"
+        },
+        "boolean" : {
+          "type" : "boolean"
+        },
         "asBoolean" : {
           "type" : "boolean"
         },
         "asString" : {
           "type" : "string"
         },
+        "asBigDecimal" : {
+          "type" : "number"
+        },
         "asBigInteger" : {
           "type" : "integer"
         },
           "type" : "integer",
           "format" : "int32"
         },
-        "boolean" : {
-          "type" : "boolean"
-        },
-        "string" : {
-          "type" : "boolean"
-        },
-        "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"
+        "asNumber" : {
+          "$ref" : "#/definitions/Number"
+        },
+        "string" : {
+          "type" : "boolean"
         },
         "asJsonObject" : {
           "$ref" : "#/definitions/JsonObject"
         },
-        "asJsonPrimitive" : {
-          "$ref" : "#/definitions/JsonPrimitive"
+        "jsonObject" : {
+          "type" : "boolean"
         },
         "asJsonArray" : {
           "$ref" : "#/definitions/JsonArray"
         },
-        "jsonObject" : {
-          "type" : "boolean"
+        "asJsonPrimitive" : {
+          "$ref" : "#/definitions/JsonPrimitive"
         },
-        "jsonArray" : {
+        "jsonNull" : {
           "type" : "boolean"
         },
         "jsonPrimitive" : {
           "type" : "boolean"
         },
-        "jsonNull" : {
+        "jsonArray" : {
           "type" : "boolean"
         },
         "asJsonNull" : {
         "pdpGroup" : {
           "type" : "string"
         },
-        "name" : {
+        "pdpSubgroup" : {
           "type" : "string"
         },
-        "modelType" : {
+        "policyModel" : {
+          "$ref" : "#/definitions/PolicyModel"
+        },
+        "name" : {
           "type" : "string"
         },
         "context" : {
         "shared" : {
           "type" : "boolean"
         },
-        "policyTosca" : {
-          "type" : "string"
-        },
         "usedByLoops" : {
           "type" : "array",
           "uniqueItems" : true,
     "JsonObject" : {
       "type" : "object",
       "properties" : {
+        "asInt" : {
+          "type" : "integer",
+          "format" : "int32"
+        },
+        "asDouble" : {
+          "type" : "number",
+          "format" : "double"
+        },
+        "asLong" : {
+          "type" : "integer",
+          "format" : "int64"
+        },
         "asBoolean" : {
           "type" : "boolean"
         },
         "asJsonObject" : {
           "$ref" : "#/definitions/JsonObject"
         },
-        "asJsonPrimitive" : {
-          "$ref" : "#/definitions/JsonPrimitive"
-        },
         "asString" : {
           "type" : "string"
         },
-        "asJsonArray" : {
-          "$ref" : "#/definitions/JsonArray"
-        },
         "jsonObject" : {
           "type" : "boolean"
         },
-        "asBigInteger" : {
-          "type" : "integer"
+        "asJsonArray" : {
+          "$ref" : "#/definitions/JsonArray"
         },
-        "asShort" : {
-          "type" : "integer",
-          "format" : "int32"
+        "asJsonPrimitive" : {
+          "$ref" : "#/definitions/JsonPrimitive"
         },
-        "jsonArray" : {
+        "jsonNull" : {
           "type" : "boolean"
         },
         "jsonPrimitive" : {
           "type" : "boolean"
         },
-        "jsonNull" : {
+        "jsonArray" : {
           "type" : "boolean"
         },
-        "asJsonNull" : {
-          "$ref" : "#/definitions/JsonNull"
+        "asBigDecimal" : {
+          "type" : "number"
         },
-        "asNumber" : {
-          "$ref" : "#/definitions/Number"
+        "asBigInteger" : {
+          "type" : "integer"
         },
-        "asDouble" : {
-          "type" : "number",
-          "format" : "double"
+        "asShort" : {
+          "type" : "integer",
+          "format" : "int32"
+        },
+        "asJsonNull" : {
+          "$ref" : "#/definitions/JsonNull"
         },
         "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"
+        "asNumber" : {
+          "$ref" : "#/definitions/Number"
         }
       },
       "x-className" : {
           "items" : {
             "$ref" : "#/definitions/LoopElementModel"
           }
+        },
+        "policyPdpGroup" : {
+          "$ref" : "#/definitions/JsonObject"
         }
       },
       "x-className" : {
         "pdpGroup" : {
           "type" : "string"
         },
+        "pdpSubgroup" : {
+          "type" : "string"
+        },
+        "policyModel" : {
+          "$ref" : "#/definitions/PolicyModel"
+        },
         "name" : {
           "type" : "string"
         },
         "loop" : {
           "$ref" : "#/definitions/Loop"
         },
-        "policyModel" : {
-          "$ref" : "#/definitions/PolicyModel"
+        "legacy" : {
+          "type" : "boolean"
         }
       }
     },
     "JsonNull" : {
       "type" : "object",
       "properties" : {
+        "asInt" : {
+          "type" : "integer",
+          "format" : "int32"
+        },
+        "asDouble" : {
+          "type" : "number",
+          "format" : "double"
+        },
+        "asLong" : {
+          "type" : "integer",
+          "format" : "int64"
+        },
         "asBoolean" : {
           "type" : "boolean"
         },
         "asJsonObject" : {
           "$ref" : "#/definitions/JsonObject"
         },
-        "asJsonPrimitive" : {
-          "$ref" : "#/definitions/JsonPrimitive"
-        },
         "asString" : {
           "type" : "string"
         },
-        "asJsonArray" : {
-          "$ref" : "#/definitions/JsonArray"
-        },
         "jsonObject" : {
           "type" : "boolean"
         },
-        "asBigInteger" : {
-          "type" : "integer"
+        "asJsonArray" : {
+          "$ref" : "#/definitions/JsonArray"
         },
-        "asShort" : {
-          "type" : "integer",
-          "format" : "int32"
+        "asJsonPrimitive" : {
+          "$ref" : "#/definitions/JsonPrimitive"
         },
-        "jsonArray" : {
+        "jsonNull" : {
           "type" : "boolean"
         },
         "jsonPrimitive" : {
           "type" : "boolean"
         },
-        "jsonNull" : {
+        "jsonArray" : {
           "type" : "boolean"
         },
-        "asJsonNull" : {
-          "$ref" : "#/definitions/JsonNull"
+        "asBigDecimal" : {
+          "type" : "number"
         },
-        "asNumber" : {
-          "$ref" : "#/definitions/Number"
+        "asBigInteger" : {
+          "type" : "integer"
         },
-        "asDouble" : {
-          "type" : "number",
-          "format" : "double"
+        "asShort" : {
+          "type" : "integer",
+          "format" : "int32"
+        },
+        "asJsonNull" : {
+          "$ref" : "#/definitions/JsonNull"
         },
         "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"
+        "asNumber" : {
+          "$ref" : "#/definitions/Number"
         }
       }
     },
     "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"
         },
+        "asBigDecimal" : {
+          "type" : "number"
+        },
         "asBigInteger" : {
           "type" : "integer"
         },
           "type" : "integer",
           "format" : "int32"
         },
-        "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"
+        "asNumber" : {
+          "$ref" : "#/definitions/Number"
         },
         "asJsonObject" : {
           "$ref" : "#/definitions/JsonObject"
         },
-        "asJsonPrimitive" : {
-          "$ref" : "#/definitions/JsonPrimitive"
+        "jsonObject" : {
+          "type" : "boolean"
         },
         "asJsonArray" : {
           "$ref" : "#/definitions/JsonArray"
         },
-        "jsonObject" : {
-          "type" : "boolean"
+        "asJsonPrimitive" : {
+          "$ref" : "#/definitions/JsonPrimitive"
         },
-        "jsonArray" : {
+        "jsonNull" : {
           "type" : "boolean"
         },
         "jsonPrimitive" : {
           "type" : "boolean"
         },
-        "jsonNull" : {
+        "jsonArray" : {
           "type" : "boolean"
         },
         "asJsonNull" : {
         }
       }
     },
-    "CldsInfo" : {
-      "type" : "object",
-      "properties" : {
-        "userName" : {
-          "type" : "string"
-        },
-        "cldsVersion" : {
-          "type" : "string"
-        },
-        "permissionReadCl" : {
-          "type" : "boolean"
-        },
-        "permissionUpdateCl" : {
-          "type" : "boolean"
-        },
-        "permissionReadTemplate" : {
-          "type" : "boolean"
-        },
-        "permissionUpdateTemplate" : {
-          "type" : "boolean"
-        },
-        "permissionReadTosca" : {
-          "type" : "boolean"
-        },
-        "permissionUpdateTosca" : {
-          "type" : "boolean"
-        }
-      },
-      "x-className" : {
-        "type" : "string",
-        "format" : "org.onap.clamp.clds.model.CldsInfo"
-      }
-    },
     "CldsHealthCheck" : {
       "type" : "object",
       "properties" : {