diff options
author | Nelson, Thomas (tn1381) <tn1381@att.com> | 2018-08-20 04:45:13 +0000 |
---|---|---|
committer | Nelson, Thomas (tn1381) <tn1381@att.com> | 2018-08-20 04:45:13 +0000 |
commit | 0d2f003049e562354fda88729dbab70f46daa25f (patch) | |
tree | 886cceb97a030a13d6d5fe586cb80dca377443cf /docs | |
parent | 1dbff4199663796788e5658c0eec33b2faade59d (diff) |
Update swagger.json and other updates.
Change-Id: I84753300e64ba82072e65ef1bde2cb76771ee046
Issue-ID: MUSIC-97
Signed-off-by: Nelson, Thomas (tn1381) <tn1381@att.com>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/swagger.json | 2118 |
1 files changed, 2117 insertions, 1 deletions
diff --git a/docs/swagger.json b/docs/swagger.json index c352537b..3f4e220f 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -1 +1,2117 @@ -{"swagger":"2.0","info":{"version":"1.0.0","title":""},"host":"localhost:8080","basePath":"/MUSIC/rest","tags":[{"name":"Version Api"},{"name":"Test Api"},{"name":"Q Api"},{"name":"Data Api"},{"name":"Lock Api"}],"schemes":["http"],"paths":{"/priorityq/keyspaces/{keyspace}/{qname}":{"post":{"tags":["Q Api"],"summary":"","description":"","operationId":"createQ","consumes":["application/json"],"parameters":[{"name":"version","in":"path","description":"Major Version","required":true,"type":"string"},{"name":"X-minorVersion","in":"header","description":"Minor Version","required":false,"type":"string"},{"name":"X-patchVersion","in":"header","description":"Patch Version","required":false,"type":"string"},{"name":"aid","in":"header","description":"AID","required":true,"type":"string"},{"name":"ns","in":"header","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"},{"in":"body","name":"body","required":false,"schema":{"$ref":"#/definitions/JsonTable"}},{"name":"keyspace","in":"path","description":"Key Space","required":true,"type":"string"},{"name":"tablename","in":"path","description":"Table Name","required":true,"type":"string"}],"responses":{"200":{"description":"successful operation","schema":{"type":"object","additionalProperties":{"type":"object"}}}}},"delete":{"tags":["Q Api"],"summary":"","description":"","operationId":"dropQ","parameters":[{"name":"version","in":"path","description":"Major Version","required":true,"type":"string"},{"name":"X-minorVersion","in":"header","description":"Minor Version","required":false,"type":"string"},{"name":"X-patchVersion","in":"header","description":"Patch Version","required":false,"type":"string"},{"name":"aid","in":"header","description":"AID","required":true,"type":"string"},{"name":"ns","in":"header","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"},{"in":"body","name":"body","required":false,"schema":{"$ref":"#/definitions/JsonTable"}},{"name":"keyspace","in":"path","description":"Key Space","required":true,"type":"string"},{"name":"tablename","in":"path","description":"Table Name","required":true,"type":"string"}],"responses":{"200":{"description":"successful operation","schema":{"type":"object","additionalProperties":{"type":"object"}}}}}},"/priorityq/keyspaces/{keyspace}/{qname}/filter":{"get":{"tags":["Q Api"],"summary":"","description":"","operationId":"filter","produces":["application/json"],"parameters":[{"name":"version","in":"path","description":"Major Version","required":true,"type":"string"},{"name":"X-minorVersion","in":"header","description":"Minor Version","required":false,"type":"string"},{"name":"X-patchVersion","in":"header","description":"Patch Version","required":false,"type":"string"},{"name":"aid","in":"header","description":"AID","required":true,"type":"string"},{"name":"ns","in":"header","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"},{"name":"keyspace","in":"path","description":"Key Space","required":true,"type":"string"},{"name":"tablename","in":"path","description":"Table Name","required":true,"type":"string"}],"responses":{"200":{"description":"successful operation","schema":{"type":"object","additionalProperties":{"type":"object"}}}}}},"/priorityq/keyspaces/{keyspace}/{qname}/peek":{"get":{"tags":["Q Api"],"summary":"","description":"","operationId":"peek","produces":["application/json"],"parameters":[{"name":"version","in":"path","description":"Major Version","required":true,"type":"string"},{"name":"X-minorVersion","in":"header","description":"Minor Version","required":false,"type":"string"},{"name":"X-patchVersion","in":"header","description":"Patch Version","required":false,"type":"string"},{"name":"aid","in":"header","description":"AID","required":true,"type":"string"},{"name":"ns","in":"header","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"},{"name":"keyspace","in":"path","description":"Key Space","required":true,"type":"string"},{"name":"tablename","in":"path","description":"Table Name","required":true,"type":"string"}],"responses":{"200":{"description":"successful operation","schema":{"type":"object","additionalProperties":{"type":"object"}}}}}},"/priorityq/keyspaces/{keyspace}/{qname}/rows":{"post":{"tags":["Q Api"],"summary":"","description":"","operationId":"insertIntoQ","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"version","in":"path","description":"Major Version","required":true,"type":"string"},{"name":"X-minorVersion","in":"header","description":"Minor Version","required":false,"type":"string"},{"name":"X-patchVersion","in":"header","description":"Patch Version","required":false,"type":"string"},{"name":"aid","in":"header","description":"AID","required":true,"type":"string"},{"name":"ns","in":"header","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"},{"in":"body","name":"body","required":false,"schema":{"$ref":"#/definitions/JsonTable"}},{"name":"keyspace","in":"path","description":"Key Space","required":true,"type":"string"},{"name":"tablename","in":"path","description":"Table Name","required":true,"type":"string"}],"responses":{"200":{"description":"successful operation","schema":{"type":"object","additionalProperties":{"type":"object"}}}}},"put":{"tags":["Q Api"],"summary":"","description":"","operationId":"updateQ","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"version","in":"path","description":"Major Version","required":true,"type":"string"},{"name":"X-minorVersion","in":"header","description":"Minor Version","required":false,"type":"string"},{"name":"X-patchVersion","in":"header","description":"Patch Version","required":false,"type":"string"},{"name":"aid","in":"header","description":"AID","required":true,"type":"string"},{"name":"ns","in":"header","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"},{"in":"body","name":"body","required":false,"schema":{"$ref":"#/definitions/JsonTable"}},{"name":"keyspace","in":"path","description":"Key Space","required":true,"type":"string"},{"name":"tablename","in":"path","description":"Table Name","required":true,"type":"string"}],"responses":{"200":{"description":"successful operation","schema":{"type":"string"}}}},"delete":{"tags":["Q Api"],"summary":"","description":"","operationId":"deleteFromQ","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"version","in":"path","description":"Major Version","required":true,"type":"string"},{"name":"X-minorVersion","in":"header","description":"Minor Version","required":false,"type":"string"},{"name":"X-patchVersion","in":"header","description":"Patch Version","required":false,"type":"string"},{"name":"aid","in":"header","description":"AID","required":true,"type":"string"},{"name":"ns","in":"header","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"},{"in":"body","name":"body","required":false,"schema":{"$ref":"#/definitions/JsonTable"}},{"name":"keyspace","in":"path","description":"Key Space","required":true,"type":"string"},{"name":"tablename","in":"path","description":"Table Name","required":true,"type":"string"}],"responses":{"200":{"description":"successful operation","schema":{"type":"string"}}}}},"/v{version: [0-9]+}/keyspaces/{keyspace}/tables/{tablename}":{"post":{"tags":["Data Api"],"summary":"Create Table","description":"","operationId":"createTable","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"version","in":"path","description":"Major Version","required":true,"type":"string"},{"name":"X-minorVersion","in":"header","description":"Minor Version","required":false,"type":"string"},{"name":"X-patchVersion","in":"header","description":"Patch Version","required":false,"type":"string"},{"name":"aid","in":"header","description":"AID","required":true,"type":"string"},{"name":"ns","in":"header","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"},{"in":"body","name":"body","required":false,"schema":{"$ref":"#/definitions/JsonTable"}},{"name":"keyspace","in":"path","description":"Keyspace Name","required":true,"type":"string"},{"name":"tablename","in":"path","description":"Table Name","required":true,"type":"string"}],"responses":{"200":{"description":"successful operation","schema":{"type":"string"}}}},"delete":{"tags":["Data Api"],"summary":"Drop Table","description":"","operationId":"dropTable","parameters":[{"name":"version","in":"path","description":"Major Version","required":true,"type":"string"},{"name":"X-minorVersion","in":"header","description":"Minor Version","required":false,"type":"string"},{"name":"X-patchVersion","in":"header","description":"Patch Version","required":false,"type":"string"},{"name":"aid","in":"header","description":"AID","required":true,"type":"string"},{"name":"ns","in":"header","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"},{"in":"body","name":"body","required":false,"schema":{"$ref":"#/definitions/JsonTable"}},{"name":"keyspace","in":"path","description":"Keyspace Name","required":true,"type":"string"},{"name":"tablename","in":"path","description":"Table Name","required":true,"type":"string"}],"responses":{"200":{"description":"successful operation","schema":{"type":"string"}}}}},"/v{version: [0-9]+}/keyspaces/{keyspace}/tables/{tablename}/index/{field}":{"post":{"tags":["Data Api"],"summary":"Create Index","description":"","operationId":"createIndex","produces":["application/json"],"parameters":[{"name":"version","in":"path","description":"Major Version","required":true,"type":"string"},{"name":"X-minorVersion","in":"header","description":"Minor Version","required":false,"type":"string"},{"name":"X-patchVersion","in":"header","description":"Patch Version","required":false,"type":"string"},{"name":"aid","in":"header","description":"AID","required":true,"type":"string"},{"name":"ns","in":"header","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"},{"name":"keyspace","in":"path","description":"Keyspace Name","required":true,"type":"string"},{"name":"tablename","in":"path","description":"Table Name","required":true,"type":"string"},{"name":"field","in":"path","description":"Field Name","required":true,"type":"string"}],"responses":{"200":{"description":"successful operation","schema":{"type":"string"}}}}},"/v{version: [0-9]+}/keyspaces/{keyspace}/tables/{tablename}/rows":{"get":{"tags":["Data Api"],"summary":"Select All or Select Specivic","description":"","operationId":"select","produces":["application/json"],"parameters":[{"name":"version","in":"path","description":"Major Version","required":true,"type":"string"},{"name":"X-minorVersion","in":"header","description":"Minor Version","required":false,"type":"string"},{"name":"X-patchVersion","in":"header","description":"Patch Version","required":false,"type":"string"},{"name":"aid","in":"header","description":"AID","required":true,"type":"string"},{"name":"ns","in":"header","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"},{"name":"keyspace","in":"path","description":"Keyspace Name","required":true,"type":"string"},{"name":"tablename","in":"path","description":"Table Name","required":true,"type":"string"}],"responses":{"200":{"description":"successful operation","schema":{"type":"object","additionalProperties":{"type":"object"}}}}},"post":{"tags":["Data Api"],"summary":"Insert Into Table","description":"","operationId":"insertIntoTable","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"version","in":"path","description":"Major Version","required":true,"type":"string"},{"name":"X-minorVersion","in":"header","description":"Minor Version","required":false,"type":"string"},{"name":"X-patchVersion","in":"header","description":"Patch Version","required":false,"type":"string"},{"name":"aid","in":"header","description":"AID","required":true,"type":"string"},{"name":"ns","in":"header","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"},{"in":"body","name":"body","required":false,"schema":{"$ref":"#/definitions/JsonTable"}},{"name":"keyspace","in":"path","description":"Keyspace Name","required":true,"type":"string"},{"name":"tablename","in":"path","description":"Table Name","required":true,"type":"string"}],"responses":{"200":{"description":"successful operation","schema":{"type":"string"}}}},"put":{"tags":["Data Api"],"summary":"Update Table","description":"","operationId":"updateTable","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"version","in":"path","description":"Major Version","required":true,"type":"string"},{"name":"X-minorVersion","in":"header","description":"Minor Version","required":false,"type":"string"},{"name":"X-patchVersion","in":"header","description":"Patch Version","required":false,"type":"string"},{"name":"aid","in":"header","description":"AID","required":true,"type":"string"},{"name":"ns","in":"header","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"},{"in":"body","name":"body","required":false,"schema":{"$ref":"#/definitions/JsonTable"}},{"name":"keyspace","in":"path","description":"Keyspace Name","required":true,"type":"string"},{"name":"tablename","in":"path","description":"Table Name","required":true,"type":"string"}],"responses":{"200":{"description":"successful operation","schema":{"type":"string"}}}},"delete":{"tags":["Data Api"],"summary":"Delete From table","description":"","operationId":"deleteFromTable","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"version","in":"path","description":"Major Version","required":true,"type":"string"},{"name":"X-minorVersion","in":"header","description":"Minor Version","required":false,"type":"string"},{"name":"X-patchVersion","in":"header","description":"Patch Version","required":false,"type":"string"},{"name":"aid","in":"header","description":"AID","required":true,"type":"string"},{"name":"ns","in":"header","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"},{"in":"body","name":"body","required":false,"schema":{"$ref":"#/definitions/JsonTable"}},{"name":"keyspace","in":"path","description":"Keyspace Name","required":true,"type":"string"},{"name":"tablename","in":"path","description":"Table Name","required":true,"type":"string"}],"responses":{"200":{"description":"successful operation","schema":{"type":"string"}}}}},"/v{version: [0-9]+}/keyspaces/{keyspace}/tables/{tablename}/rows/criticalget":{"put":{"tags":["Data Api"],"summary":"Select Critical","description":"","operationId":"selectCritical","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"version","in":"path","description":"Major Version","required":true,"type":"string"},{"name":"X-minorVersion","in":"header","description":"Minor Version","required":false,"type":"string"},{"name":"X-patchVersion","in":"header","description":"Patch Version","required":false,"type":"string"},{"name":"aid","in":"header","description":"AID","required":true,"type":"string"},{"name":"ns","in":"header","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"},{"in":"body","name":"body","required":false,"schema":{"$ref":"#/definitions/JsonTable"}},{"name":"keyspace","in":"path","description":"Keyspace Name","required":true,"type":"string"},{"name":"tablename","in":"path","description":"Table Name","required":true,"type":"string"}],"responses":{"200":{"description":"successful operation","schema":{"type":"object","additionalProperties":{"type":"object"}}}}}},"/v{version: [0-9]+}/keyspaces/{name}":{"post":{"tags":["Data Api"],"summary":"Create Keyspace","description":"","operationId":"createKeySpace","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"version","in":"path","description":"Major Version","required":true,"type":"string"},{"name":"X-minorVersion","in":"header","description":"Minor Version","required":false,"type":"string"},{"name":"X-patchVersion","in":"header","description":"Patch Version","required":false,"type":"string"},{"name":"aid","in":"header","description":"AID","required":true,"type":"string"},{"name":"ns","in":"header","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"},{"in":"body","name":"body","required":false,"schema":{"$ref":"#/definitions/JsonTable"}},{"name":"name","in":"path","description":"Keyspace Name","required":true,"type":"string"}],"responses":{"200":{"description":"successful operation","schema":{"type":"string"}}}},"delete":{"tags":["Data Api"],"summary":"Delete Keyspace","description":"","operationId":"dropKeySpace","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"version","in":"path","description":"Major Version","required":true,"type":"string"},{"name":"X-minorVersion","in":"header","description":"Minor Version","required":false,"type":"string"},{"name":"X-patchVersion","in":"header","description":"Patch Version","required":false,"type":"string"},{"name":"aid","in":"header","description":"AID","required":true,"type":"string"},{"name":"ns","in":"header","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"},{"in":"body","name":"body","required":false,"schema":{"$ref":"#/definitions/JsonTable"}},{"name":"name","in":"path","description":"Keyspace Name","required":true,"type":"string"}],"responses":{"200":{"description":"successful operation","schema":{"type":"string"}}}}},"/v{version: [0-9]+}/locks/acquire-with-lease/{lockreference}":{"post":{"tags":["Lock Api"],"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":"Lock Reference","required":true,"type":"string"}],"responses":{"200":{"description":"successful operation","schema":{"type":"object","additionalProperties":{"type":"object"}}}}}},"/v{version: [0-9]+}/locks/acquire/{lockreference}":{"get":{"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","produces":["application/json"],"parameters":[{"name":"lockreference","in":"path","description":"Lock Reference","required":true,"type":"string"}],"responses":{"200":{"description":"successful operation","schema":{"type":"object","additionalProperties":{"type":"object"}}}}}},"/v{version: [0-9]+}/locks/create/{lockname}":{"post":{"tags":["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","operationId":"createLockReference","produces":["application/json"],"parameters":[{"name":"lockname","in":"path","description":"Lock Name","required":true,"type":"string"}],"responses":{"200":{"description":"successful operation","schema":{"type":"object","additionalProperties":{"type":"object"}}}}}},"/v{version: [0-9]+}/locks/delete/{lockname}":{"delete":{"tags":["Lock Api"],"summary":"Delete Lock","description":"","operationId":"deleteLock","produces":["application/json"],"parameters":[{"name":"lockname","in":"path","required":true,"type":"string"}],"responses":{"200":{"description":"successful operation","schema":{"type":"object","additionalProperties":{"type":"object"}}}}}},"/v{version: [0-9]+}/locks/enquire/{lockname}":{"get":{"tags":["Lock Api"],"summary":"Get Lock Holder","description":"Gets the current Lock Holder","operationId":"currentLockHolder","produces":["application/json"],"parameters":[{"name":"lockname","in":"path","description":"Lock Name","required":true,"type":"string"}],"responses":{"200":{"description":"successful operation","schema":{"type":"object","additionalProperties":{"type":"object"}}}}}},"/v{version: [0-9]+}/locks/release/{lockreference}":{"delete":{"tags":["Lock Api"],"summary":"Release Lock","description":"deletes the process from the zk queue","operationId":"unLock","produces":["application/json"],"parameters":[{"name":"lockreference","in":"path","required":true,"type":"string"}],"responses":{"200":{"description":"successful operation","schema":{"type":"object","additionalProperties":{"type":"object"}}}}}},"/v{version: [0-9]+}/locks/{lockname}":{"get":{"tags":["Lock Api"],"summary":"Lock State","description":"Returns current Lock State and Holder.","operationId":"currentLockState","produces":["application/json"],"parameters":[{"name":"lockname","in":"path","description":"Lock Name","required":true,"type":"string"}],"responses":{"200":{"description":"successful operation","schema":{"type":"object","additionalProperties":{"type":"object"}}}}}},"/v{version: [0-9]+}/test":{"get":{"tags":["Test Api"],"summary":"Get Test","description":"","operationId":"simpleTests","produces":["application/json"],"parameters":[],"responses":{"200":{"description":"successful operation","schema":{"type":"object","additionalProperties":{"type":"object"}}}}}},"/v{version: [0-9]+}/version":{"get":{"tags":["Version Api"],"summary":"Get Version","description":"","operationId":"version","produces":["application/json"],"parameters":[],"responses":{"200":{"description":"successful operation","schema":{"type":"object","additionalProperties":{"type":"object"}}}}}}},"definitions":{"JsonTable":{"type":"object","properties":{"leasePeriod":{"type":"integer","format":"int64","description":"Lease period"},"notifyUrl":{"type":"string","description":"URL to be notified"}},"description":"model for leased lock"},"PreparedQueryObject":{"type":"object","properties":{"values":{"type":"array","items":{"type":"object"}},"query":{"type":"string"}}}}}
\ No newline at end of file +{ + "swagger": "2.0", + "info": { + "version": "1.0.0", + "title": "" + }, + "host": "localhost:8080", + "basePath": "/MUSIC/rest", + "tags": [ + { + "name": "Data Api" + }, + { + "name": "Healthcheck Api" + }, + { + "name": "Lock Api" + }, + { + "name": "Q Api" + }, + { + "name": "Test Api" + }, + { + "name": "Version Api" + } + ], + "schemes": [ + "http" + ], + "paths": { + "/v2/keyspaces/{keyspace}/tables/{tablename}/rows": { + "get": { + "tags": [ + "Data Api" + ], + "summary": "Select All or Select Specific", + "description": "", + "operationId": "select", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "version", + "in": "path", + "description": "Major Version", + "required": true, + "type": "string" + }, + { + "name": "X-minorVersion", + "in": "header", + "description": "Minor Version", + "required": false, + "type": "string" + }, + { + "name": "X-patchVersion", + "in": "header", + "description": "Patch Version", + "required": false, + "type": "string" + }, + { + "name": "aid", + "in": "header", + "description": "AID", + "required": true, + "type": "string" + }, + { + "name": "ns", + "in": "header", + "description": "Application namespace", + "required": true, + "type": "string" + }, + { + "name": "Authorization", + "in": "header", + "description": "Authorization", + "required": true, + "type": "string" + }, + { + "name": "keyspace", + "in": "path", + "description": "Keyspace Name", + "required": true, + "type": "string" + }, + { + "name": "tablename", + "in": "path", + "description": "Table Name", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "object", + "additionalProperties": { + "type": "object" + } + } + } + } + }, + "post": { + "tags": [ + "Data Api" + ], + "summary": "Insert Into Table", + "description": "", + "operationId": "insertIntoTable", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "version", + "in": "path", + "description": "Major Version", + "required": true, + "type": "string" + }, + { + "name": "X-minorVersion", + "in": "header", + "description": "Minor Version", + "required": false, + "type": "string" + }, + { + "name": "X-patchVersion", + "in": "header", + "description": "Patch Version", + "required": false, + "type": "string" + }, + { + "name": "aid", + "in": "header", + "description": "AID", + "required": true, + "type": "string" + }, + { + "name": "ns", + "in": "header", + "description": "Application namespace", + "required": true, + "type": "string" + }, + { + "name": "Authorization", + "in": "header", + "description": "Authorization", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/JsonTable" + } + }, + { + "name": "keyspace", + "in": "path", + "description": "Keyspace Name", + "required": true, + "type": "string" + }, + { + "name": "tablename", + "in": "path", + "description": "Table Name", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "string" + } + } + } + }, + "put": { + "tags": [ + "Data Api" + ], + "summary": "Update Table", + "description": "", + "operationId": "updateTable", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "version", + "in": "path", + "description": "Major Version", + "required": true, + "type": "string" + }, + { + "name": "X-minorVersion", + "in": "header", + "description": "Minor Version", + "required": false, + "type": "string" + }, + { + "name": "X-patchVersion", + "in": "header", + "description": "Patch Version", + "required": false, + "type": "string" + }, + { + "name": "aid", + "in": "header", + "description": "AID", + "required": true, + "type": "string" + }, + { + "name": "ns", + "in": "header", + "description": "Application namespace", + "required": true, + "type": "string" + }, + { + "name": "Authorization", + "in": "header", + "description": "Authorization", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/JsonTable" + } + }, + { + "name": "keyspace", + "in": "path", + "description": "Keyspace Name", + "required": true, + "type": "string" + }, + { + "name": "tablename", + "in": "path", + "description": "Table Name", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "string" + } + } + } + }, + "delete": { + "tags": [ + "Data Api" + ], + "summary": "Delete From table", + "description": "", + "operationId": "deleteFromTable", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "version", + "in": "path", + "description": "Major Version", + "required": true, + "type": "string" + }, + { + "name": "X-minorVersion", + "in": "header", + "description": "Minor Version", + "required": false, + "type": "string" + }, + { + "name": "X-patchVersion", + "in": "header", + "description": "Patch Version", + "required": false, + "type": "string" + }, + { + "name": "aid", + "in": "header", + "description": "AID", + "required": true, + "type": "string" + }, + { + "name": "ns", + "in": "header", + "description": "Application namespace", + "required": true, + "type": "string" + }, + { + "name": "Authorization", + "in": "header", + "description": "Authorization", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/JsonTable" + } + }, + { + "name": "keyspace", + "in": "path", + "description": "Keyspace Name", + "required": true, + "type": "string" + }, + { + "name": "tablename", + "in": "path", + "description": "Table Name", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "string" + } + } + } + } + }, + "/v2/keyspaces/{name}": { + "post": { + "tags": [ + "Data Api" + ], + "summary": "Create Keyspace", + "description": "", + "operationId": "createKeySpace", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "version", + "in": "path", + "description": "Major Version", + "required": true, + "type": "string" + }, + { + "name": "X-minorVersion", + "in": "header", + "description": "Minor Version", + "required": false, + "type": "string" + }, + { + "name": "X-patchVersion", + "in": "header", + "description": "Patch Version", + "required": false, + "type": "string" + }, + { + "name": "aid", + "in": "header", + "description": "AID", + "required": true, + "type": "string" + }, + { + "name": "Authorization", + "in": "header", + "description": "Authorization", + "required": true, + "type": "string" + }, + { + "name": "ns", + "in": "header", + "description": "Application namespace", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/JsonTable" + } + }, + { + "name": "name", + "in": "path", + "description": "Keyspace Name", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "string" + } + } + } + }, + "delete": { + "tags": [ + "Data Api" + ], + "summary": "Delete Keyspace", + "description": "", + "operationId": "dropKeySpace", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "version", + "in": "path", + "description": "Major Version", + "required": true, + "type": "string" + }, + { + "name": "X-minorVersion", + "in": "header", + "description": "Minor Version", + "required": false, + "type": "string" + }, + { + "name": "X-patchVersion", + "in": "header", + "description": "Patch Version", + "required": false, + "type": "string" + }, + { + "name": "aid", + "in": "header", + "description": "AID", + "required": true, + "type": "string" + }, + { + "name": "Authorization", + "in": "header", + "description": "Authorization", + "required": true, + "type": "string" + }, + { + "name": "ns", + "in": "header", + "description": "Application namespace", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "path", + "description": "Keyspace Name", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "string" + } + } + } + } + }, + "/v2/keyspaces/{keyspace}/tables/{tablename}/index/{field}": { + "post": { + "tags": [ + "Data Api" + ], + "summary": "Create Index", + "description": "", + "operationId": "createIndex", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "version", + "in": "path", + "description": "Major Version", + "required": true, + "type": "string" + }, + { + "name": "X-minorVersion", + "in": "header", + "description": "Minor Version", + "required": false, + "type": "string" + }, + { + "name": "X-patchVersion", + "in": "header", + "description": "Patch Version", + "required": false, + "type": "string" + }, + { + "name": "aid", + "in": "header", + "description": "AID", + "required": true, + "type": "string" + }, + { + "name": "ns", + "in": "header", + "description": "Application namespace", + "required": true, + "type": "string" + }, + { + "name": "Authorization", + "in": "header", + "description": "Authorization", + "required": true, + "type": "string" + }, + { + "name": "keyspace", + "in": "path", + "description": "Keyspace Name", + "required": true, + "type": "string" + }, + { + "name": "tablename", + "in": "path", + "description": "Table Name", + "required": true, + "type": "string" + }, + { + "name": "field", + "in": "path", + "description": "Field Name", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "string" + } + } + } + } + }, + "/v2/keyspaces/{keyspace}/tables/{tablename}/rows/criticalget": { + "put": { + "tags": [ + "Data Api" + ], + "summary": "Select Critical", + "description": "", + "operationId": "selectCritical", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "version", + "in": "path", + "description": "Major Version", + "required": true, + "type": "string" + }, + { + "name": "X-minorVersion", + "in": "header", + "description": "Minor Version", + "required": false, + "type": "string" + }, + { + "name": "X-patchVersion", + "in": "header", + "description": "Patch Version", + "required": false, + "type": "string" + }, + { + "name": "aid", + "in": "header", + "description": "AID", + "required": true, + "type": "string" + }, + { + "name": "ns", + "in": "header", + "description": "Application namespace", + "required": true, + "type": "string" + }, + { + "name": "Authorization", + "in": "header", + "description": "Authorization", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/JsonTable" + } + }, + { + "name": "keyspace", + "in": "path", + "description": "Keyspace Name", + "required": true, + "type": "string" + }, + { + "name": "tablename", + "in": "path", + "description": "Table Name", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "object", + "additionalProperties": { + "type": "object" + } + } + } + } + } + }, + "/v2/keyspaces/{keyspace}/tables/{tablename}": { + "post": { + "tags": [ + "Data Api" + ], + "summary": "Create Table", + "description": "", + "operationId": "createTable", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "version", + "in": "path", + "description": "Major Version", + "required": true, + "type": "string" + }, + { + "name": "X-minorVersion", + "in": "header", + "description": "Minor Version", + "required": false, + "type": "string" + }, + { + "name": "X-patchVersion", + "in": "header", + "description": "Patch Version", + "required": false, + "type": "string" + }, + { + "name": "aid", + "in": "header", + "description": "AID", + "required": true, + "type": "string" + }, + { + "name": "ns", + "in": "header", + "description": "Application namespace", + "required": true, + "type": "string" + }, + { + "name": "Authorization", + "in": "header", + "description": "Authorization", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/JsonTable" + } + }, + { + "name": "keyspace", + "in": "path", + "description": "Keyspace Name", + "required": true, + "type": "string" + }, + { + "name": "tablename", + "in": "path", + "description": "Table Name", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "string" + } + } + } + }, + "delete": { + "tags": [ + "Data Api" + ], + "summary": "Drop Table", + "description": "", + "operationId": "dropTable", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "version", + "in": "path", + "description": "Major Version", + "required": true, + "type": "string" + }, + { + "name": "X-minorVersion", + "in": "header", + "description": "Minor Version", + "required": false, + "type": "string" + }, + { + "name": "X-patchVersion", + "in": "header", + "description": "Patch Version", + "required": false, + "type": "string" + }, + { + "name": "aid", + "in": "header", + "description": "AID", + "required": true, + "type": "string" + }, + { + "name": "ns", + "in": "header", + "description": "Application namespace", + "required": true, + "type": "string" + }, + { + "name": "Authorization", + "in": "header", + "description": "Authorization", + "required": true, + "type": "string" + }, + { + "name": "keyspace", + "in": "path", + "description": "Keyspace Name", + "required": true, + "type": "string" + }, + { + "name": "tablename", + "in": "path", + "description": "Table Name", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "string" + } + } + } + } + }, + "/v{version}/service/pingCassandra/{consistency}": { + "get": { + "tags": [ + "Healthcheck Api" + ], + "summary": "Get Health Status", + "description": "", + "operationId": "cassandraStatus", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "consistency", + "in": "path", + "description": "Consistency level", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "object", + "additionalProperties": { + "type": "object" + } + } + } + } + } + }, + "/v{version}/service/pingZookeeper": { + "get": { + "tags": [ + "Healthcheck Api" + ], + "summary": "Get Health Status", + "description": "", + "operationId": "ZKStatus", + "produces": [ + "application/json" + ], + "parameters": [], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "object", + "additionalProperties": { + "type": "object" + } + } + } + } + } + }, + "/v2/locks/create/{lockname}": { + "post": { + "tags": [ + "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", + "operationId": "createLockReference", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "lockname", + "in": "path", + "description": "Lock Name", + "required": true, + "type": "string" + }, + { + "name": "X-minorVersion", + "in": "header", + "description": "Minor Version", + "required": false, + "type": "string" + }, + { + "name": "X-patchVersion", + "in": "header", + "description": "Patch Version", + "required": false, + "type": "string" + }, + { + "name": "Authorization", + "in": "header", + "description": "Authorization", + "required": true, + "type": "string" + }, + { + "name": "aid", + "in": "header", + "description": "AID", + "required": true, + "type": "string" + }, + { + "name": "ns", + "in": "header", + "description": "Application namespace", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "object", + "additionalProperties": { + "type": "object" + } + } + } + } + } + }, + "/v2/locks/acquire-with-lease/{lockreference}": { + "post": { + "tags": [ + "Lock Api" + ], + "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": "Lock Reference", + "required": true, + "type": "string" + }, + { + "name": "X-minorVersion", + "in": "header", + "description": "Minor Version", + "required": false, + "type": "string" + }, + { + "name": "X-patchVersion", + "in": "header", + "description": "Patch Version", + "required": false, + "type": "string" + }, + { + "name": "Authorization", + "in": "header", + "description": "Authorization", + "required": true, + "type": "string" + }, + { + "name": "aid", + "in": "header", + "description": "AID", + "required": true, + "type": "string" + }, + { + "name": "ns", + "in": "header", + "description": "Application namespace", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "object", + "additionalProperties": { + "type": "object" + } + } + } + } + } + }, + "/v2/locks/acquire/{lockreference}": { + "get": { + "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", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "lockreference", + "in": "path", + "description": "Lock Reference", + "required": true, + "type": "string" + }, + { + "name": "X-minorVersion", + "in": "header", + "description": "Minor Version", + "required": false, + "type": "string" + }, + { + "name": "X-patchVersion", + "in": "header", + "description": "Patch Version", + "required": false, + "type": "string" + }, + { + "name": "Authorization", + "in": "header", + "description": "Authorization", + "required": true, + "type": "string" + }, + { + "name": "aid", + "in": "header", + "description": "AID", + "required": true, + "type": "string" + }, + { + "name": "ns", + "in": "header", + "description": "Application namespace", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "object", + "additionalProperties": { + "type": "object" + } + } + } + } + } + }, + "/v2/locks/enquire/{lockname}": { + "get": { + "tags": [ + "Lock Api" + ], + "summary": "Get Lock Holder", + "description": "Gets the current Lock Holder", + "operationId": "currentLockHolder", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "lockname", + "in": "path", + "description": "Lock Name", + "required": true, + "type": "string" + }, + { + "name": "X-minorVersion", + "in": "header", + "description": "Minor Version", + "required": false, + "type": "string" + }, + { + "name": "X-patchVersion", + "in": "header", + "description": "Patch Version", + "required": false, + "type": "string" + }, + { + "name": "Authorization", + "in": "header", + "description": "Authorization", + "required": true, + "type": "string" + }, + { + "name": "aid", + "in": "header", + "description": "AID", + "required": true, + "type": "string" + }, + { + "name": "ns", + "in": "header", + "description": "Application namespace", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "object", + "additionalProperties": { + "type": "object" + } + } + } + } + } + }, + "/v2/locks/{lockname}": { + "get": { + "tags": [ + "Lock Api" + ], + "summary": "Lock State", + "description": "Returns current Lock State and Holder.", + "operationId": "currentLockState", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "lockname", + "in": "path", + "description": "Lock Name", + "required": true, + "type": "string" + }, + { + "name": "X-minorVersion", + "in": "header", + "description": "Minor Version", + "required": false, + "type": "string" + }, + { + "name": "X-patchVersion", + "in": "header", + "description": "Patch Version", + "required": false, + "type": "string" + }, + { + "name": "Authorization", + "in": "header", + "description": "Authorization", + "required": true, + "type": "string" + }, + { + "name": "aid", + "in": "header", + "description": "AID", + "required": true, + "type": "string" + }, + { + "name": "ns", + "in": "header", + "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": { + "200": { + "description": "successful operation", + "schema": { + "type": "object", + "additionalProperties": { + "type": "object" + } + } + } + } + } + }, + "/v2/locks/release/{lockreference}": { + "delete": { + "tags": [ + "Lock Api" + ], + "summary": "Release Lock", + "description": "deletes the process from the zk queue", + "operationId": "unLock", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "lockreference", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-minorVersion", + "in": "header", + "description": "Minor Version", + "required": false, + "type": "string" + }, + { + "name": "X-patchVersion", + "in": "header", + "description": "Patch Version", + "required": false, + "type": "string" + }, + { + "name": "Authorization", + "in": "header", + "description": "Authorization", + "required": true, + "type": "string" + }, + { + "name": "aid", + "in": "header", + "description": "AID", + "required": true, + "type": "string" + }, + { + "name": "ns", + "in": "header", + "description": "Application namespace", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "object", + "additionalProperties": { + "type": "object" + } + } + } + } + } + }, + "/v2/locks/delete/{lockname}": { + "delete": { + "tags": [ + "Lock Api" + ], + "summary": "Delete Lock", + "description": "", + "operationId": "deleteLock", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "lockname", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "X-minorVersion", + "in": "header", + "description": "Minor Version", + "required": false, + "type": "string" + }, + { + "name": "X-patchVersion", + "in": "header", + "description": "Patch Version", + "required": false, + "type": "string" + }, + { + "name": "aid", + "in": "header", + "description": "AID", + "required": true, + "type": "string" + }, + { + "name": "Authorization", + "in": "header", + "description": "Authorization", + "required": true, + "type": "string" + }, + { + "name": "ns", + "in": "header", + "description": "Application namespace", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "object", + "additionalProperties": { + "type": "object" + } + } + } + } + } + }, + "/{version}/priorityq/keyspaces/{keyspace}/{qname}": { + "post": { + "tags": [ + "Q Api" + ], + "summary": "Create Q", + "description": "", + "operationId": "createQ", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "version", + "in": "path", + "description": "Major Version", + "required": true, + "type": "string" + }, + { + "name": "X-minorVersion", + "in": "header", + "description": "Minor Version", + "required": false, + "type": "string" + }, + { + "name": "X-patchVersion", + "in": "header", + "description": "Patch Version", + "required": false, + "type": "string" + }, + { + "name": "aid", + "in": "header", + "description": "AID", + "required": true, + "type": "string" + }, + { + "name": "ns", + "in": "header", + "description": "Application namespace", + "required": true, + "type": "string" + }, + { + "name": "Authorization", + "in": "header", + "description": "Authorization", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/JsonTable" + } + }, + { + "name": "keyspace", + "in": "path", + "description": "Key Space", + "required": true, + "type": "string" + }, + { + "name": "qname", + "in": "path", + "description": "Table Name", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "string" + } + } + } + }, + "delete": { + "tags": [ + "Q Api" + ], + "summary": "DropQ", + "description": "", + "operationId": "dropQ", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "version", + "in": "path", + "description": "Major Version", + "required": true, + "type": "string" + }, + { + "name": "X-minorVersion", + "in": "header", + "description": "Minor Version", + "required": false, + "type": "string" + }, + { + "name": "X-patchVersion", + "in": "header", + "description": "Patch Version", + "required": false, + "type": "string" + }, + { + "name": "aid", + "in": "header", + "description": "AID", + "required": true, + "type": "string" + }, + { + "name": "ns", + "in": "header", + "description": "Application namespace", + "required": true, + "type": "string" + }, + { + "name": "Authorization", + "in": "header", + "description": "Authorization", + "required": true, + "type": "string" + }, + { + "name": "keyspace", + "in": "path", + "description": "Key Space", + "required": true, + "type": "string" + }, + { + "name": "qname", + "in": "path", + "description": "Table Name", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "string" + } + } + } + } + }, + "/{version}/priorityq/keyspaces/{keyspace}/{qname}/rows": { + "post": { + "tags": [ + "Q Api" + ], + "summary": "", + "description": "", + "operationId": "insertIntoQ", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "version", + "in": "path", + "description": "Major Version", + "required": true, + "type": "string" + }, + { + "name": "X-minorVersion", + "in": "header", + "description": "Minor Version", + "required": false, + "type": "string" + }, + { + "name": "X-patchVersion", + "in": "header", + "description": "Patch Version", + "required": false, + "type": "string" + }, + { + "name": "aid", + "in": "header", + "description": "AID", + "required": true, + "type": "string" + }, + { + "name": "ns", + "in": "header", + "description": "Application namespace", + "required": true, + "type": "string" + }, + { + "name": "Authorization", + "in": "header", + "description": "Authorization", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/JsonTable" + } + }, + { + "name": "keyspace", + "in": "path", + "description": "Key Space", + "required": true, + "type": "string" + }, + { + "name": "qname", + "in": "path", + "description": "Table Name", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "successful operation" + } + } + }, + "put": { + "tags": [ + "Q Api" + ], + "summary": "updateQ", + "description": "", + "operationId": "updateQ", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "version", + "in": "path", + "description": "Major Version", + "required": true, + "type": "string" + }, + { + "name": "X-minorVersion", + "in": "header", + "description": "Minor Version", + "required": false, + "type": "string" + }, + { + "name": "X-patchVersion", + "in": "header", + "description": "Patch Version", + "required": false, + "type": "string" + }, + { + "name": "aid", + "in": "header", + "description": "AID", + "required": true, + "type": "string" + }, + { + "name": "ns", + "in": "header", + "description": "Application namespace", + "required": true, + "type": "string" + }, + { + "name": "Authorization", + "in": "header", + "description": "Authorization", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/JsonTable" + } + }, + { + "name": "keyspace", + "in": "path", + "description": "Key Space", + "required": true, + "type": "string" + }, + { + "name": "qname", + "in": "path", + "description": "Table Name", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "string" + } + } + } + }, + "delete": { + "tags": [ + "Q Api" + ], + "summary": "deleteQ", + "description": "", + "operationId": "deleteFromQ", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "version", + "in": "path", + "description": "Major Version", + "required": true, + "type": "string" + }, + { + "name": "X-minorVersion", + "in": "header", + "description": "Minor Version", + "required": false, + "type": "string" + }, + { + "name": "X-patchVersion", + "in": "header", + "description": "Patch Version", + "required": false, + "type": "string" + }, + { + "name": "aid", + "in": "header", + "description": "AID", + "required": true, + "type": "string" + }, + { + "name": "ns", + "in": "header", + "description": "Application namespace", + "required": true, + "type": "string" + }, + { + "name": "Authorization", + "in": "header", + "description": "Authorization", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": false, + "schema": { + "$ref": "#/definitions/JsonTable" + } + }, + { + "name": "keyspace", + "in": "path", + "description": "Key Space", + "required": true, + "type": "string" + }, + { + "name": "qname", + "in": "path", + "description": "Table Name", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "string" + } + } + } + } + }, + "/{version}/priorityq/keyspaces/{keyspace}/{qname}/peek": { + "get": { + "tags": [ + "Q Api" + ], + "summary": "", + "description": "", + "operationId": "peek", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "version", + "in": "path", + "description": "Major Version", + "required": true, + "type": "string" + }, + { + "name": "X-minorVersion", + "in": "header", + "description": "Minor Version", + "required": false, + "type": "string" + }, + { + "name": "X-patchVersion", + "in": "header", + "description": "Patch Version", + "required": false, + "type": "string" + }, + { + "name": "aid", + "in": "header", + "description": "AID", + "required": true, + "type": "string" + }, + { + "name": "ns", + "in": "header", + "description": "Application namespace", + "required": true, + "type": "string" + }, + { + "name": "Authorization", + "in": "header", + "description": "Authorization", + "required": true, + "type": "string" + }, + { + "name": "keyspace", + "in": "path", + "description": "Key Space", + "required": true, + "type": "string" + }, + { + "name": "qname", + "in": "path", + "description": "Table Name", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "object", + "additionalProperties": { + "type": "object" + } + } + } + } + } + }, + "/{version}/priorityq/keyspaces/{keyspace}/{qname}/filter": { + "get": { + "tags": [ + "Q Api" + ], + "summary": "filter", + "description": "", + "operationId": "filter", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "version", + "in": "path", + "description": "Major Version", + "required": true, + "type": "string" + }, + { + "name": "X-minorVersion", + "in": "header", + "description": "Minor Version", + "required": false, + "type": "string" + }, + { + "name": "X-patchVersion", + "in": "header", + "description": "Patch Version", + "required": false, + "type": "string" + }, + { + "name": "aid", + "in": "header", + "description": "AID", + "required": true, + "type": "string" + }, + { + "name": "ns", + "in": "header", + "description": "Application namespace", + "required": true, + "type": "string" + }, + { + "name": "Authorization", + "in": "header", + "description": "Authorization", + "required": true, + "type": "string" + }, + { + "name": "keyspace", + "in": "path", + "description": "Key Space", + "required": true, + "type": "string" + }, + { + "name": "qname", + "in": "path", + "description": "Table Name", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "object", + "additionalProperties": { + "type": "object" + } + } + } + } + } + }, + "/v{version}/test": { + "get": { + "tags": [ + "Test Api" + ], + "summary": "Get Test", + "description": "", + "operationId": "simpleTests", + "produces": [ + "application/json" + ], + "parameters": [], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "object", + "additionalProperties": { + "type": "object" + } + } + } + } + } + }, + "/v{version}/version": { + "get": { + "tags": [ + "Version Api" + ], + "summary": "Get Version", + "description": "", + "operationId": "version", + "produces": [ + "application/json" + ], + "parameters": [], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "type": "object", + "additionalProperties": { + "type": "object" + } + } + } + } + } + } + }, + "definitions": { + "JsonTable": { + "type": "object", + "properties": { + "columns": { + "type": "array", + "description": "Column values", + "items": { + "type": "string" + } + }, + "consistencyInfo": { + "type": "object", + "description": "Consistency level", + "additionalProperties": { + "type": "string" + } + }, + "conditions": { + "type": "object", + "description": "Conditions", + "additionalProperties": { + "type": "object" + } + }, + "ttl": { + "type": "string", + "description": "Time to live information" + }, + "timestamp": { + "type": "string", + "description": "Time stamp" + } + }, + "description": "Json model for delete" + } + } +} |