|
|
|
@ -2600,136 +2600,6 @@
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"/api/v1/db/data/{orgs}/{projectName}/{tableName}/exist": { |
|
|
|
|
"parameters": [ |
|
|
|
|
{ |
|
|
|
|
"schema": { |
|
|
|
|
"type": "string" |
|
|
|
|
}, |
|
|
|
|
"name": "orgs", |
|
|
|
|
"in": "path", |
|
|
|
|
"required": true |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"schema": { |
|
|
|
|
"type": "string" |
|
|
|
|
}, |
|
|
|
|
"name": "projectName", |
|
|
|
|
"in": "path", |
|
|
|
|
"required": true |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"schema": { |
|
|
|
|
"type": "string" |
|
|
|
|
}, |
|
|
|
|
"name": "tableName", |
|
|
|
|
"in": "path", |
|
|
|
|
"required": true |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
"get": { |
|
|
|
|
"summary": "Table row Exist", |
|
|
|
|
"operationId": "db-table-row-exist", |
|
|
|
|
"description": "check if table row with conditions exists or not", |
|
|
|
|
"tags": [ |
|
|
|
|
"DB table row" |
|
|
|
|
], |
|
|
|
|
"parameters": [ |
|
|
|
|
{ |
|
|
|
|
"schema": { |
|
|
|
|
"type": "array" |
|
|
|
|
}, |
|
|
|
|
"in": "query", |
|
|
|
|
"name": "fields" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"schema": { |
|
|
|
|
"type": "array" |
|
|
|
|
}, |
|
|
|
|
"in": "query", |
|
|
|
|
"name": "sort" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"schema": { |
|
|
|
|
"type": "string" |
|
|
|
|
}, |
|
|
|
|
"in": "query", |
|
|
|
|
"name": "where" |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
"responses": { |
|
|
|
|
"200": { |
|
|
|
|
"description": "OK", |
|
|
|
|
"content": { |
|
|
|
|
"application/json": { |
|
|
|
|
"schema": {} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"/api/v1/db/data/{orgs}/{projectName}/{tableName}/count": { |
|
|
|
|
"parameters": [ |
|
|
|
|
{ |
|
|
|
|
"schema": { |
|
|
|
|
"type": "string" |
|
|
|
|
}, |
|
|
|
|
"name": "orgs", |
|
|
|
|
"in": "path", |
|
|
|
|
"required": true |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"schema": { |
|
|
|
|
"type": "string" |
|
|
|
|
}, |
|
|
|
|
"name": "projectName", |
|
|
|
|
"in": "path", |
|
|
|
|
"required": true |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"schema": { |
|
|
|
|
"type": "string" |
|
|
|
|
}, |
|
|
|
|
"name": "tableName", |
|
|
|
|
"in": "path", |
|
|
|
|
"required": true |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
"get": { |
|
|
|
|
"summary": "table rows count", |
|
|
|
|
"operationId": "db-table-row-count", |
|
|
|
|
"description": "", |
|
|
|
|
"tags": [ |
|
|
|
|
"DB table row" |
|
|
|
|
], |
|
|
|
|
"parameters": [ |
|
|
|
|
{ |
|
|
|
|
"schema": { |
|
|
|
|
"type": "string" |
|
|
|
|
}, |
|
|
|
|
"in": "query", |
|
|
|
|
"name": "where" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"schema": {}, |
|
|
|
|
"in": "query", |
|
|
|
|
"name": "nested", |
|
|
|
|
"description": "Query params for nested data" |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
"responses": { |
|
|
|
|
"200": { |
|
|
|
|
"description": "OK", |
|
|
|
|
"content": { |
|
|
|
|
"application/json": { |
|
|
|
|
"schema": {} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"/api/v1/db/data/{orgs}/{projectName}/{tableName}/views/{viewName}": { |
|
|
|
|
"parameters": [ |
|
|
|
|
{ |
|
|
|
@ -2920,7 +2790,7 @@
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"/api/v1/db/data/{orgs}/{projectName}/{tableName}/views/{viewName}/exist": { |
|
|
|
|
"/api/v1/db/data/{orgs}/{projectName}/{tableName}/views/{viewName}/count": { |
|
|
|
|
"parameters": [ |
|
|
|
|
{ |
|
|
|
|
"schema": { |
|
|
|
@ -2956,27 +2826,13 @@
|
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
"get": { |
|
|
|
|
"summary": "Table view row Exist", |
|
|
|
|
"operationId": "db-view-row-exist", |
|
|
|
|
"description": "check if table row with conditions exists or not", |
|
|
|
|
"summary": "Table view rows count", |
|
|
|
|
"operationId": "db-view-row-count", |
|
|
|
|
"description": "", |
|
|
|
|
"tags": [ |
|
|
|
|
"DB view row" |
|
|
|
|
], |
|
|
|
|
"parameters": [ |
|
|
|
|
{ |
|
|
|
|
"schema": { |
|
|
|
|
"type": "array" |
|
|
|
|
}, |
|
|
|
|
"in": "query", |
|
|
|
|
"name": "fields" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"schema": { |
|
|
|
|
"type": "array" |
|
|
|
|
}, |
|
|
|
|
"in": "query", |
|
|
|
|
"name": "sort" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"schema": { |
|
|
|
|
"type": "string" |
|
|
|
@ -3003,7 +2859,7 @@
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"/api/v1/db/data/{orgs}/{projectName}/{tableName}/views/{viewName}/count": { |
|
|
|
|
"/api/v1/db/data/{orgs}/{projectName}/{tableName}/views/{viewName}/{rowId}": { |
|
|
|
|
"parameters": [ |
|
|
|
|
{ |
|
|
|
|
"schema": { |
|
|
|
@ -3036,30 +2892,37 @@
|
|
|
|
|
"name": "viewName", |
|
|
|
|
"in": "path", |
|
|
|
|
"required": true |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"schema": { |
|
|
|
|
"type": "string" |
|
|
|
|
}, |
|
|
|
|
"name": "rowId", |
|
|
|
|
"in": "path", |
|
|
|
|
"required": true |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
"get": { |
|
|
|
|
"summary": "Table view rows count", |
|
|
|
|
"operationId": "db-view-row-count", |
|
|
|
|
"summary": "Table view row read", |
|
|
|
|
"operationId": "db-view-row-read", |
|
|
|
|
"responses": { |
|
|
|
|
"201": { |
|
|
|
|
"description": "Created", |
|
|
|
|
"content": { |
|
|
|
|
"application/json": { |
|
|
|
|
"schema": {} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"description": "", |
|
|
|
|
"tags": [ |
|
|
|
|
"DB view row" |
|
|
|
|
], |
|
|
|
|
"parameters": [ |
|
|
|
|
{ |
|
|
|
|
"schema": { |
|
|
|
|
"type": "string" |
|
|
|
|
}, |
|
|
|
|
"in": "query", |
|
|
|
|
"name": "where" |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"schema": {}, |
|
|
|
|
"in": "query", |
|
|
|
|
"name": "nested", |
|
|
|
|
"description": "Query params for nested data" |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
"patch": { |
|
|
|
|
"summary": "Table view row update", |
|
|
|
|
"operationId": "db-view-row-update", |
|
|
|
|
"responses": { |
|
|
|
|
"200": { |
|
|
|
|
"description": "OK", |
|
|
|
@ -3069,10 +2932,33 @@
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"tags": [ |
|
|
|
|
"DB view row" |
|
|
|
|
], |
|
|
|
|
"requestBody": { |
|
|
|
|
"content": { |
|
|
|
|
"application/json": { |
|
|
|
|
"schema": {} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"delete": { |
|
|
|
|
"summary": "Table view row delete", |
|
|
|
|
"operationId": "db-view-row-delete", |
|
|
|
|
"responses": { |
|
|
|
|
"200": { |
|
|
|
|
"description": "OK" |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"tags": [ |
|
|
|
|
"DB view row" |
|
|
|
|
], |
|
|
|
|
"description": "" |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"/api/v1/db/data/{orgs}/{projectName}/{tableName}/views/{viewName}/{rowId}": { |
|
|
|
|
"/api/v1/db/data/{orgs}/{projectName}/{tableName}/views/{viewName}/{rowId}/exist": { |
|
|
|
|
"parameters": [ |
|
|
|
|
{ |
|
|
|
|
"schema": { |
|
|
|
@ -3116,8 +3002,8 @@
|
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
"get": { |
|
|
|
|
"summary": "Table view row read", |
|
|
|
|
"operationId": "db-view-row-read", |
|
|
|
|
"summary": "Table view row exist", |
|
|
|
|
"operationId": "db-view-row-exist", |
|
|
|
|
"responses": { |
|
|
|
|
"201": { |
|
|
|
|
"description": "Created", |
|
|
|
@ -3128,47 +3014,10 @@
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"description": "", |
|
|
|
|
"description": "check row with provided primary key exists or not", |
|
|
|
|
"tags": [ |
|
|
|
|
"DB view row" |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
"patch": { |
|
|
|
|
"summary": "Table view row update", |
|
|
|
|
"operationId": "db-view-row-update", |
|
|
|
|
"responses": { |
|
|
|
|
"200": { |
|
|
|
|
"description": "OK", |
|
|
|
|
"content": { |
|
|
|
|
"application/json": { |
|
|
|
|
"schema": {} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"tags": [ |
|
|
|
|
"DB view row" |
|
|
|
|
], |
|
|
|
|
"requestBody": { |
|
|
|
|
"content": { |
|
|
|
|
"application/json": { |
|
|
|
|
"schema": {} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"delete": { |
|
|
|
|
"summary": "Table view row delete", |
|
|
|
|
"operationId": "db-view-row-delete", |
|
|
|
|
"responses": { |
|
|
|
|
"200": { |
|
|
|
|
"description": "OK" |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"tags": [ |
|
|
|
|
"DB view row" |
|
|
|
|
], |
|
|
|
|
"description": "" |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"/api/v1/db/data/{orgs}/{projectName}/{tableName}/{rowId}": { |
|
|
|
@ -3262,6 +3111,60 @@
|
|
|
|
|
"description": "" |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"/api/v1/db/data/{orgs}/{projectName}/{tableName}/{rowId}/exist": { |
|
|
|
|
"parameters": [ |
|
|
|
|
{ |
|
|
|
|
"schema": { |
|
|
|
|
"type": "string" |
|
|
|
|
}, |
|
|
|
|
"name": "orgs", |
|
|
|
|
"in": "path", |
|
|
|
|
"required": true |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"schema": { |
|
|
|
|
"type": "string" |
|
|
|
|
}, |
|
|
|
|
"name": "projectName", |
|
|
|
|
"in": "path", |
|
|
|
|
"required": true |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"schema": { |
|
|
|
|
"type": "string" |
|
|
|
|
}, |
|
|
|
|
"name": "tableName", |
|
|
|
|
"in": "path", |
|
|
|
|
"required": true |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"schema": { |
|
|
|
|
"type": "string" |
|
|
|
|
}, |
|
|
|
|
"name": "rowId", |
|
|
|
|
"in": "path", |
|
|
|
|
"required": true |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
"get": { |
|
|
|
|
"summary": "Table row exist", |
|
|
|
|
"operationId": "db-table-row-exist", |
|
|
|
|
"responses": { |
|
|
|
|
"201": { |
|
|
|
|
"description": "Created", |
|
|
|
|
"content": { |
|
|
|
|
"application/json": { |
|
|
|
|
"schema": {} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"description": "check row with provided primary key exists or not", |
|
|
|
|
"tags": [ |
|
|
|
|
"DB table row" |
|
|
|
|
] |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"/api/v1/db/data/bulk/{orgs}/{projectName}/{tableName}": { |
|
|
|
|
"parameters": [ |
|
|
|
|
{ |
|
|
|
|