Skip to content

Commit 512e677

Browse files
authored
Merge pull request #26 from glideapps/api-update-glide-pr-30629
OpenAPI spec update from glideapps/glide#30629
2 parents bd79b6b + 6a01a6e commit 512e677

File tree

4 files changed

+120
-1
lines changed

4 files changed

+120
-1
lines changed

api-reference/v2/resources/changelog.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ title: Glide API Changelog
33
sidebarTitle: Changelog
44
---
55

6+
### November 6, 2024
7+
8+
- Added a DELETE endpoint to remove a row.
9+
610
### October 25, 2024
711

812
- Introduced a PATCH endpoint to update an existing row.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: Delete Row
3+
openapi: delete /tables/{tableID}/rows/{rowID}
4+
---
5+
6+
Deletes a row in a Big Table. No error is returned if the row does not exist.

mint.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
"api-reference/v2/tables/post-tables",
3939
"api-reference/v2/tables/post-table-rows",
4040
"api-reference/v2/tables/put-tables",
41-
"api-reference/v2/tables/patch-table-row"
41+
"api-reference/v2/tables/patch-table-row",
42+
"api-reference/v2/tables/delete-table-row"
4243
]
4344
},
4445
{

openapi/swagger.json

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1319,6 +1319,114 @@
13191319
}
13201320
},
13211321
"description": "Updates a row in a Big Table"
1322+
},
1323+
"delete": {
1324+
"responses": {
1325+
"200": {
1326+
"description": "",
1327+
"content": {
1328+
"application/json": {
1329+
"schema": {
1330+
"type": "object",
1331+
"properties": {},
1332+
"additionalProperties": false,
1333+
"description": "A 200 HTTP response code indicates that the row does not exist or was successfully deleted."
1334+
}
1335+
}
1336+
}
1337+
},
1338+
"400": {
1339+
"description": "",
1340+
"content": {
1341+
"application/json": {
1342+
"schema": {
1343+
"type": "object",
1344+
"properties": {
1345+
"error": {
1346+
"type": "object",
1347+
"properties": {
1348+
"type": {
1349+
"type": "string"
1350+
},
1351+
"message": {
1352+
"type": "string"
1353+
}
1354+
},
1355+
"required": [
1356+
"type",
1357+
"message"
1358+
],
1359+
"additionalProperties": false
1360+
}
1361+
},
1362+
"required": [
1363+
"error"
1364+
],
1365+
"additionalProperties": false
1366+
}
1367+
}
1368+
}
1369+
},
1370+
"404": {
1371+
"description": "",
1372+
"content": {
1373+
"application/json": {
1374+
"schema": {
1375+
"type": "object",
1376+
"properties": {
1377+
"error": {
1378+
"type": "object",
1379+
"properties": {
1380+
"type": {
1381+
"type": "string",
1382+
"enum": [
1383+
"table_not_found",
1384+
"table_not_big_table"
1385+
]
1386+
},
1387+
"message": {
1388+
"type": "string"
1389+
}
1390+
},
1391+
"required": [
1392+
"type",
1393+
"message"
1394+
],
1395+
"additionalProperties": false
1396+
}
1397+
},
1398+
"required": [
1399+
"error"
1400+
],
1401+
"additionalProperties": false
1402+
}
1403+
}
1404+
}
1405+
}
1406+
},
1407+
"parameters": [
1408+
{
1409+
"name": "tableID",
1410+
"in": "path",
1411+
"schema": {
1412+
"type": "string",
1413+
"description": "ID of the table, e.g., `2a1bad8b-cf7c-44437-b8c1-e3782df6`",
1414+
"example": "2a1bad8b-cf7c-44437-b8c1-e3782df6"
1415+
},
1416+
"required": true
1417+
},
1418+
{
1419+
"name": "rowID",
1420+
"in": "path",
1421+
"schema": {
1422+
"type": "string",
1423+
"description": "ID of the row, e.g., `2a1bad8b-cf7c-44437-b8c1-e3782df6`",
1424+
"example": "2a1bad8b-cf7c-44437-b8c1-e3782df6"
1425+
},
1426+
"required": true
1427+
}
1428+
],
1429+
"description": "Deletes a row from a Big Table"
13221430
}
13231431
},
13241432
"/stashes/{stashID}/{serial}": {

0 commit comments

Comments
 (0)