|
|
|
@ -14261,56 +14261,26 @@
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"/api/v1/base/tables/{tableId}/rows/{rowId}": { |
|
|
|
|
"parameters": [ |
|
|
|
|
{ |
|
|
|
|
"schema": { |
|
|
|
|
"type": "string" |
|
|
|
|
}, |
|
|
|
|
"name": "tableId", |
|
|
|
|
"in": "path", |
|
|
|
|
"required": true, |
|
|
|
|
"description": "Table Id" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"schema": { |
|
|
|
|
"type": "string" |
|
|
|
|
}, |
|
|
|
|
"name": "viewId", |
|
|
|
|
"in": "query", |
|
|
|
|
"required": true |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"schema": { |
|
|
|
|
"example": "1" |
|
|
|
|
}, |
|
|
|
|
"name": "rowId", |
|
|
|
|
"in": "path", |
|
|
|
|
"required": true, |
|
|
|
|
"description": "Unique Row ID" |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
"get": { |
|
|
|
|
"summary": "Get Table View Row", |
|
|
|
|
"operationId": "db-view-row-read", |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
"patch": { |
|
|
|
|
"summary": "Update Table View Row", |
|
|
|
|
"operationId": "table-row-update", |
|
|
|
|
"responses": { |
|
|
|
|
"200": { |
|
|
|
|
"description": "OK", |
|
|
|
|
"content": { |
|
|
|
|
"application/json": { |
|
|
|
|
"schema": { |
|
|
|
|
"type": "object", |
|
|
|
|
"properties": {} |
|
|
|
|
"type": "object" |
|
|
|
|
}, |
|
|
|
|
"examples": { |
|
|
|
|
"Example 1": { |
|
|
|
|
"value": { |
|
|
|
|
"Id": 1, |
|
|
|
|
"Title": "foo", |
|
|
|
|
"Title": "bar", |
|
|
|
|
"CreatedAt": "2023-03-11T09:11:47.437Z", |
|
|
|
|
"UpdatedAt": "2023-03-11T09:11:47.784Z" |
|
|
|
|
"UpdatedAt": "2023-03-11T09:20:21.133Z" |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -14321,33 +14291,55 @@
|
|
|
|
|
"$ref": "#/components/responses/BadRequest" |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"description": "Get the target Table View Row", |
|
|
|
|
"tags": ["DB Table Row"], |
|
|
|
|
"requestBody": { |
|
|
|
|
"content": { |
|
|
|
|
"application/json": { |
|
|
|
|
"schema": { |
|
|
|
|
"oneOf": [ |
|
|
|
|
{ |
|
|
|
|
"type": "object" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"type": "array", |
|
|
|
|
"items": { |
|
|
|
|
"type": "object" |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
"examples": { |
|
|
|
|
"Example 1": { |
|
|
|
|
"value": { |
|
|
|
|
"Id": 1, |
|
|
|
|
"Title": "bar" |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"description": "Update the target Table View Row", |
|
|
|
|
"parameters": [ |
|
|
|
|
{ |
|
|
|
|
"$ref": "#/components/parameters/xc-auth" |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
"patch": { |
|
|
|
|
"summary": "Update Table View Row", |
|
|
|
|
"operationId": "table-row-update", |
|
|
|
|
"delete": { |
|
|
|
|
"summary": "Delete Table View Row", |
|
|
|
|
"operationId": "table-row-delete", |
|
|
|
|
"responses": { |
|
|
|
|
"200": { |
|
|
|
|
"description": "OK", |
|
|
|
|
"content": { |
|
|
|
|
"application/json": { |
|
|
|
|
"schema": { |
|
|
|
|
"type": "object" |
|
|
|
|
"type": "number" |
|
|
|
|
}, |
|
|
|
|
"examples": { |
|
|
|
|
"Example 1": { |
|
|
|
|
"value": { |
|
|
|
|
"Id": 1, |
|
|
|
|
"Title": "bar", |
|
|
|
|
"CreatedAt": "2023-03-11T09:11:47.437Z", |
|
|
|
|
"UpdatedAt": "2023-03-11T09:20:21.133Z" |
|
|
|
|
} |
|
|
|
|
"value": 1 |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -14357,44 +14349,91 @@
|
|
|
|
|
"$ref": "#/components/responses/BadRequest" |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"tags": ["DB Table Row"], |
|
|
|
|
|
|
|
|
|
"requestBody": { |
|
|
|
|
"content": { |
|
|
|
|
"application/json": { |
|
|
|
|
"schema": { |
|
|
|
|
"type": "object" |
|
|
|
|
"oneOf": [ |
|
|
|
|
{ |
|
|
|
|
"type": "object" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"type": "array", |
|
|
|
|
"items": { |
|
|
|
|
"type": "object" |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
"examples": { |
|
|
|
|
"Example 1": { |
|
|
|
|
"value": { |
|
|
|
|
"Title": "bar" |
|
|
|
|
"Id": 1 |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"description": "Update the target Table View Row", |
|
|
|
|
"tags": ["DB Table Row"], |
|
|
|
|
"description": "Delete the target Table View Row", |
|
|
|
|
"parameters": [ |
|
|
|
|
{ |
|
|
|
|
"$ref": "#/components/parameters/xc-auth" |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
"delete": { |
|
|
|
|
"summary": "Delete Table View Row", |
|
|
|
|
"operationId": "table-row-delete", |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"/api/v1/base/tables/{tableId}/rows/{rowId}": { |
|
|
|
|
"parameters": [ |
|
|
|
|
{ |
|
|
|
|
"schema": { |
|
|
|
|
"type": "string" |
|
|
|
|
}, |
|
|
|
|
"name": "tableId", |
|
|
|
|
"in": "path", |
|
|
|
|
"required": true, |
|
|
|
|
"description": "Table Id" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"schema": { |
|
|
|
|
"type": "string" |
|
|
|
|
}, |
|
|
|
|
"name": "viewId", |
|
|
|
|
"in": "query", |
|
|
|
|
"required": true |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"schema": { |
|
|
|
|
"example": "1" |
|
|
|
|
}, |
|
|
|
|
"name": "rowId", |
|
|
|
|
"in": "path", |
|
|
|
|
"required": true, |
|
|
|
|
"description": "Unique Row ID" |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
"get": { |
|
|
|
|
"summary": "Get Table View Row", |
|
|
|
|
"operationId": "db-view-row-read", |
|
|
|
|
"responses": { |
|
|
|
|
"200": { |
|
|
|
|
"description": "OK", |
|
|
|
|
"content": { |
|
|
|
|
"application/json": { |
|
|
|
|
"schema": { |
|
|
|
|
"type": "number" |
|
|
|
|
"type": "object", |
|
|
|
|
"properties": {} |
|
|
|
|
}, |
|
|
|
|
"examples": { |
|
|
|
|
"Example 1": { |
|
|
|
|
"value": 1 |
|
|
|
|
"value": { |
|
|
|
|
"Id": 1, |
|
|
|
|
"Title": "foo", |
|
|
|
|
"CreatedAt": "2023-03-11T09:11:47.437Z", |
|
|
|
|
"UpdatedAt": "2023-03-11T09:11:47.784Z" |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -14404,8 +14443,8 @@
|
|
|
|
|
"$ref": "#/components/responses/BadRequest" |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"description": "Get the target Table View Row", |
|
|
|
|
"tags": ["DB Table Row"], |
|
|
|
|
"description": "Delete the target Table View Row", |
|
|
|
|
"parameters": [ |
|
|
|
|
{ |
|
|
|
|
"$ref": "#/components/parameters/xc-auth" |
|
|
|
|