Merge "Read lock promotion"
[music.git] / docs / swagger.json
index 3f4e220..3bc6705 100644 (file)
         }
       }
     },
-    "/v{version}/service/pingCassandra/{consistency}": {
+    "/v{version}/service/pingZookeeper": {
       "get": {
         "tags": [
           "Healthcheck Api"
         ],
         "summary": "Get Health Status",
         "description": "",
-        "operationId": "cassandraStatus",
+        "operationId": "ZKStatus",
         "produces": [
           "application/json"
         ],
-        "parameters": [
-          {
-            "name": "consistency",
-            "in": "path",
-            "description": "Consistency level",
-            "required": true,
-            "type": "string"
+        "parameters": [],
+        "responses": {
+          "200": {
+            "description": "successful operation",
+            "schema": {
+              "type": "object",
+              "additionalProperties": {
+                "type": "object"
+              }
+            }
           }
+        }
+      }
+    },
+    "/v{version}/service/musicHealthCheck": {
+      "get": {
+        "tags": [
+          "Healthcheck Api"
+        ],
+        "summary": "Get Health Status",
+        "description": "",
+        "operationId": "musicHealthCheck",
+        "produces": [
+          "application/json"
         ],
+        "parameters": [],
         "responses": {
           "200": {
             "description": "successful operation",
         }
       }
     },
-    "/v{version}/service/pingZookeeper": {
+    "/v{version}/service/pingCassandra/{consistency}": {
       "get": {
         "tags": [
           "Healthcheck Api"
         ],
         "summary": "Get Health Status",
         "description": "",
-        "operationId": "ZKStatus",
+        "operationId": "cassandraStatus",
         "produces": [
           "application/json"
         ],
-        "parameters": [],
+        "parameters": [
+          {
+            "name": "consistency",
+            "in": "path",
+            "description": "Consistency level",
+            "required": true,
+            "type": "string"
+          }
+        ],
         "responses": {
           "200": {
             "description": "successful operation",
           "Lock Api"
         ],
         "summary": "Create Lock",
-        "description": "Puts the requesting process in the q for this lock. The corresponding node will be created in zookeeper if it did not already exist. Lock Name is the \"key\" of the form keyspaceName.tableName.rowId",
+        "description": "Puts the requesting process in the q for this lock. The corresponding lock will be created if it did not already exist. Lock Name is the \"key\" of the form keyspaceName.tableName.rowId",
         "operationId": "createLockReference",
         "produces": [
           "application/json"
         }
       }
     },
-    "/v2/locks/acquire-with-lease/{lockreference}": {
-      "post": {
+    "/v2/locks/acquire/{lockreference}": {
+      "get": {
         "tags": [
           "Lock Api"
         ],
-        "summary": "Aquire Lock with Lease",
-        "description": "",
-        "operationId": "accquireLockWithLease",
-        "consumes": [
-          "application/json"
-        ],
+        "summary": "Aquire Lock",
+        "description": "Checks if the node is in the top of the queue and hence acquires the lock",
+        "operationId": "accquireLock",
         "produces": [
           "application/json"
         ],
         "parameters": [
-          {
-            "in": "body",
-            "name": "body",
-            "required": false,
-            "schema": {
-              "$ref": "#/definitions/JsonTable"
-            }
-          },
           {
             "name": "lockreference",
             "in": "path",
         }
       }
     },
-    "/v2/locks/acquire/{lockreference}": {
-      "get": {
+    "/v2/locks/acquire-with-lease/{lockreference}": {
+      "post": {
         "tags": [
           "Lock Api"
         ],
-        "summary": "Aquire Lock",
-        "description": "Checks if the node is in the top of the queue and hence acquires the lock",
-        "operationId": "accquireLock",
+        "summary": "Aquire Lock with Lease",
+        "description": "",
+        "operationId": "accquireLockWithLease",
+        "consumes": [
+          "application/json"
+        ],
         "produces": [
           "application/json"
         ],
         "parameters": [
+          {
+            "in": "body",
+            "name": "body",
+            "required": false,
+            "schema": {
+              "$ref": "#/definitions/JsonTable"
+            }
+          },
           {
             "name": "lockreference",
             "in": "path",
             "description": "Application namespace",
             "required": true,
             "type": "string"
-          },
-          {
-            "name": "userId",
-            "in": "header",
-            "description": "userId",
-            "required": true,
-            "type": "string"
-          },
-          {
-            "name": "password",
-            "in": "header",
-            "description": "Password",
-            "required": true,
-            "type": "string"
           }
         ],
         "responses": {