Draft of React test
[clamp.git] / docs / swagger / swagger.json
index 079daa2..d35a59c 100644 (file)
@@ -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",
             }
           }
         },
-        "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",
         "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",
             }
           }
         },
-        "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" : {
             }
           }
         },
-        "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",
             }
           }
         },
-        "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",
             }
           }
         },
-        "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",
             }
           }
         },
-        "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",
             }
           }
         },
-        "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",
             }
           }
         },
-        "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",
             }
           }
         },
-        "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" : [ {
             }
           }
         },
-        "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" : [ {
             }
           }
         },
-        "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" : [ {
             }
           }
         },
-        "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" : [ {
         "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" : {
             }
           }
         },
-        "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" : {
             }
           }
         },
-        "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" : [ {
         "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" : [ {
         "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" : {
             }
           }
         },
-        "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",
             }
           }
         },
-        "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" : [ {
             }
           }
         },
-        "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",
         "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",
         "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" : [ {
         "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" : {
             }
           }
         },
-        "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",
             }
           }
         },
-        "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" : [ {
             }
           }
         },
-        "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",
         "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",
         "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" : {
             }
           }
         },
-        "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" : [ {
             }
           }
         },
-        "x-camelContextId" : "camel-1",
-        "x-routeId" : "route39"
+        "x-camelContextId" : "camel-5",
+        "x-routeId" : "route203"
       }
     },
     "/v1/dictionary/{dictionaryName}/items" : {
             }
           }
         },
-        "x-camelContextId" : "camel-1",
+        "x-camelContextId" : "camel-5",
         "x-routeId" : null
       },
       "put" : {
             }
           }
         },
-        "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" : {
             }
           }
         },
-        "x-camelContextId" : "camel-1",
-        "x-routeId" : "route36"
+        "x-camelContextId" : "camel-5",
+        "x-routeId" : "route200"
       }
     },
     "/v1/tosca/models/{toscaModelName}" : {
             }
           }
         },
-        "x-camelContextId" : "camel-1",
+        "x-camelContextId" : "camel-5",
         "x-routeId" : null
       },
       "put" : {
-        "operationId" : "route33",
+        "operationId" : "route197",
         "consumes" : [ "application/json" ],
         "produces" : [ "application/json" ],
         "parameters" : [ {
         "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",
             }
           }
         },
-        "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"
       }
     }
   },
           "type" : "string",
           "enum" : [ "DESIGN", "SUBMITTED", "DEPLOYED", "RUNNING", "STOPPED", "IN_ERROR", "WAITING" ]
         },
+        "components" : {
+          "type" : "object",
+          "additionalProperties" : {
+            "$ref" : "#/definitions/ExternalComponent"
+          }
+        },
         "operationalPolicies" : {
           "type" : "array",
           "uniqueItems" : true,
     "JsonArray" : {
       "type" : "object",
       "properties" : {
-        "asString" : {
-          "type" : "string"
-        },
         "asBoolean" : {
           "type" : "boolean"
         },
+        "asString" : {
+          "type" : "string"
+        },
         "asNumber" : {
           "$ref" : "#/definitions/Number"
         },
           "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" : {
           "type" : "string",
           "enum" : [ "INFO", "WARNING", "ERROR" ]
         },
+        "logComponent" : {
+          "type" : "string"
+        },
         "message" : {
           "type" : "string"
         },
     "JsonPrimitive" : {
       "type" : "object",
       "properties" : {
+        "asBoolean" : {
+          "type" : "boolean"
+        },
         "boolean" : {
           "type" : "boolean"
         },
         "asString" : {
           "type" : "string"
         },
-        "asBoolean" : {
-          "type" : "boolean"
-        },
         "asNumber" : {
           "$ref" : "#/definitions/Number"
         },
         "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"
         }
       }
     },
     "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"
         },
         "asShort" : {
           "type" : "integer",
           "format" : "int32"
+        },
+        "jsonArray" : {
+          "type" : "boolean"
+        },
+        "jsonObject" : {
+          "type" : "boolean"
+        },
+        "jsonPrimitive" : {
+          "type" : "boolean"
+        },
+        "jsonNull" : {
+          "type" : "boolean"
+        },
+        "asJsonArray" : {
+          "$ref" : "#/definitions/JsonArray"
         }
       },
       "x-className" : {
         "format" : "com.google.gson.JsonObject"
       }
     },
+    "ExternalComponent" : {
+      "type" : "object",
+      "properties" : {
+        "state" : {
+          "$ref" : "#/definitions/ExternalComponentState"
+        },
+        "componentName" : {
+          "type" : "string"
+        }
+      }
+    },
     "OperationalPolicy" : {
       "type" : "object",
       "properties" : {
         }
       }
     },
-    "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"
         },
         "asShort" : {
           "type" : "integer",
           "format" : "int32"
+        },
+        "jsonArray" : {
+          "type" : "boolean"
+        },
+        "jsonObject" : {
+          "type" : "boolean"
+        },
+        "jsonPrimitive" : {
+          "type" : "boolean"
+        },
+        "jsonNull" : {
+          "type" : "boolean"
+        },
+        "asJsonArray" : {
+          "$ref" : "#/definitions/JsonArray"
         }
       }
     },