Repair healthcheck
HealthCheck was always returning 200 even if the db was not up and
running
Issue-ID: CLAMP-494
Change-Id: I85aa427a212c6cde568d3863d1ab1a1a11c71f16
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
diff --git a/docs/swagger/swagger.json b/docs/swagger/swagger.json
index 0bd2b07..80ffc2a 100644
--- a/docs/swagger/swagger.json
+++ b/docs/swagger/swagger.json
@@ -4,7 +4,7 @@
"version" : "4.1.2-SNAPSHOT",
"title" : "Clamp Rest API"
},
- "host" : "localhost:40147",
+ "host" : "localhost:36829",
"basePath" : "/restservices/clds/",
"schemes" : [ "http" ],
"paths" : {
@@ -419,12 +419,12 @@
"asString" : {
"type" : "string"
},
- "asBoolean" : {
- "type" : "boolean"
- },
"asNumber" : {
"$ref" : "#/definitions/Number"
},
+ "asBoolean" : {
+ "type" : "boolean"
+ },
"asDouble" : {
"type" : "number",
"format" : "double"
@@ -464,23 +464,23 @@
"asJsonPrimitive" : {
"$ref" : "#/definitions/JsonPrimitive"
},
- "jsonObject" : {
- "type" : "boolean"
- },
- "jsonNull" : {
- "type" : "boolean"
- },
- "jsonArray" : {
- "type" : "boolean"
- },
"jsonPrimitive" : {
"type" : "boolean"
},
"asJsonArray" : {
"$ref" : "#/definitions/JsonArray"
},
+ "jsonObject" : {
+ "type" : "boolean"
+ },
+ "jsonNull" : {
+ "type" : "boolean"
+ },
"asJsonNull" : {
"$ref" : "#/definitions/JsonNull"
+ },
+ "jsonArray" : {
+ "type" : "boolean"
}
},
"x-className" : {
@@ -529,12 +529,12 @@
"asString" : {
"type" : "string"
},
- "asBoolean" : {
- "type" : "boolean"
- },
"asNumber" : {
"$ref" : "#/definitions/Number"
},
+ "asBoolean" : {
+ "type" : "boolean"
+ },
"asDouble" : {
"type" : "number",
"format" : "double"
@@ -577,23 +577,23 @@
"asJsonPrimitive" : {
"$ref" : "#/definitions/JsonPrimitive"
},
- "jsonObject" : {
- "type" : "boolean"
- },
- "jsonNull" : {
- "type" : "boolean"
- },
- "jsonArray" : {
- "type" : "boolean"
- },
"jsonPrimitive" : {
"type" : "boolean"
},
"asJsonArray" : {
"$ref" : "#/definitions/JsonArray"
},
+ "jsonObject" : {
+ "type" : "boolean"
+ },
+ "jsonNull" : {
+ "type" : "boolean"
+ },
"asJsonNull" : {
"$ref" : "#/definitions/JsonNull"
+ },
+ "jsonArray" : {
+ "type" : "boolean"
}
}
},
@@ -643,30 +643,30 @@
"asString" : {
"type" : "string"
},
- "jsonObject" : {
- "type" : "boolean"
- },
- "jsonNull" : {
- "type" : "boolean"
- },
- "jsonArray" : {
- "type" : "boolean"
- },
- "asBoolean" : {
- "type" : "boolean"
- },
"jsonPrimitive" : {
"type" : "boolean"
},
"asJsonArray" : {
"$ref" : "#/definitions/JsonArray"
},
- "asJsonNull" : {
- "$ref" : "#/definitions/JsonNull"
+ "jsonObject" : {
+ "type" : "boolean"
},
"asNumber" : {
"$ref" : "#/definitions/Number"
},
+ "jsonNull" : {
+ "type" : "boolean"
+ },
+ "asJsonNull" : {
+ "$ref" : "#/definitions/JsonNull"
+ },
+ "jsonArray" : {
+ "type" : "boolean"
+ },
+ "asBoolean" : {
+ "type" : "boolean"
+ },
"asDouble" : {
"type" : "number",
"format" : "double"
@@ -761,30 +761,30 @@
"asString" : {
"type" : "string"
},
- "jsonObject" : {
- "type" : "boolean"
- },
- "jsonNull" : {
- "type" : "boolean"
- },
- "jsonArray" : {
- "type" : "boolean"
- },
- "asBoolean" : {
- "type" : "boolean"
- },
"jsonPrimitive" : {
"type" : "boolean"
},
"asJsonArray" : {
"$ref" : "#/definitions/JsonArray"
},
- "asJsonNull" : {
- "$ref" : "#/definitions/JsonNull"
+ "jsonObject" : {
+ "type" : "boolean"
},
"asNumber" : {
"$ref" : "#/definitions/Number"
},
+ "jsonNull" : {
+ "type" : "boolean"
+ },
+ "asJsonNull" : {
+ "$ref" : "#/definitions/JsonNull"
+ },
+ "jsonArray" : {
+ "type" : "boolean"
+ },
+ "asBoolean" : {
+ "type" : "boolean"
+ },
"asDouble" : {
"type" : "number",
"format" : "double"
diff --git a/docs/swagger/swagger.pdf b/docs/swagger/swagger.pdf
index 967dc9a..9ae7d6e 100644
--- a/docs/swagger/swagger.pdf
+++ b/docs/swagger/swagger.pdf
Binary files differ