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