diff --git a/api-reference/v2/resources/changelog.mdx b/api-reference/v2/resources/changelog.mdx index 9f26b1c..dc3a3d5 100644 --- a/api-reference/v2/resources/changelog.mdx +++ b/api-reference/v2/resources/changelog.mdx @@ -3,6 +3,10 @@ title: Glide API Changelog sidebarTitle: Changelog --- +### November 6, 2024 + +- Added a DELETE endpoint to remove a row. + ### October 25, 2024 - Introduced a PATCH endpoint to update an existing row. diff --git a/api-reference/v2/tables/delete-table-row.mdx b/api-reference/v2/tables/delete-table-row.mdx new file mode 100644 index 0000000..1a72f4b --- /dev/null +++ b/api-reference/v2/tables/delete-table-row.mdx @@ -0,0 +1,6 @@ +--- +title: Delete Row +openapi: delete /tables/{tableID}/rows/{rowID} +--- + +Deletes a row in a Big Table. No error is returned if the row does not exist. diff --git a/mint.json b/mint.json index 97822ae..384b1bf 100644 --- a/mint.json +++ b/mint.json @@ -38,7 +38,8 @@ "api-reference/v2/tables/post-tables", "api-reference/v2/tables/post-table-rows", "api-reference/v2/tables/put-tables", - "api-reference/v2/tables/patch-table-row" + "api-reference/v2/tables/patch-table-row", + "api-reference/v2/tables/delete-table-row" ] }, { diff --git a/openapi/swagger.json b/openapi/swagger.json index 10ec165..c3abdce 100644 --- a/openapi/swagger.json +++ b/openapi/swagger.json @@ -1319,6 +1319,114 @@ } }, "description": "Updates a row in a Big Table" + }, + "delete": { + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false, + "description": "A 200 HTTP response code indicates that the row does not exist or was successfully deleted." + } + } + } + }, + "400": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "error": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "message": { + "type": "string" + } + }, + "required": [ + "type", + "message" + ], + "additionalProperties": false + } + }, + "required": [ + "error" + ], + "additionalProperties": false + } + } + } + }, + "404": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "error": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "table_not_found", + "table_not_big_table" + ] + }, + "message": { + "type": "string" + } + }, + "required": [ + "type", + "message" + ], + "additionalProperties": false + } + }, + "required": [ + "error" + ], + "additionalProperties": false + } + } + } + } + }, + "parameters": [ + { + "name": "tableID", + "in": "path", + "schema": { + "type": "string", + "description": "ID of the table, e.g., `2a1bad8b-cf7c-44437-b8c1-e3782df6`", + "example": "2a1bad8b-cf7c-44437-b8c1-e3782df6" + }, + "required": true + }, + { + "name": "rowID", + "in": "path", + "schema": { + "type": "string", + "description": "ID of the row, e.g., `2a1bad8b-cf7c-44437-b8c1-e3782df6`", + "example": "2a1bad8b-cf7c-44437-b8c1-e3782df6" + }, + "required": true + } + ], + "description": "Deletes a row from a Big Table" } }, "/stashes/{stashID}/{serial}": {