Jakub Serafin
f7fdfab6bf
(core) GET endpoint for webhooks returns now data in format {webhooks:[...]}
Summary:
Rework of endpoint GET for webhooks to make it coherent with other endpoints. Now data should be return in {webhooks:[{id:"...",fields:{"..."}]} format
```
{
"webhooks": [
{
"id": ...
"fields": {
"url": ...
"unsubscribeKey": ...
"eventTypes": [
"add",
"update"
],
"isReadyColumn": null,
"tableId": "...",
"enabled": false,
"name": "...",
"memo": "..."
},
"usage": {
"status": "idle",
"numWaiting": 0,
"lastEventBatch": null
}
},
{
"id": "...",
"fields": {
"url": "...",
"unsubscribeKey": "...",
"eventTypes": [
"add",
"update"
],
"isReadyColumn": null,
"tableId": "...",
"enabled": true,
"name": "...",
"memo": "..."
},
"usage": {
"status": "error",
"numWaiting": 0,
"updatedTime": 1689076978098,
"lastEventBatch": {
"status": "rejected",
"httpStatus": 404,
"errorMessage": "{\"success\":false,\"error\":{\"message\":\"Alias 5a9bf6a8-4865-403a-bec6-b4ko not found\",\"id\":null}}",
"size": 49,
"attempts": 5
},
"lastSuccessTime": null,
"lastFailureTime": 1689076978097,
"lastErrorMessage": "{\"success\":false,\"error\":{\"message\":\"Alias 5a9bf6a8-4865-403a-bec6-b4ko not found\",\"id\":null}}",
"lastHttpStatus": 404
}
}
]
}
```
Test Plan: new test added to check if GET data fromat is correct. Other tests fixed to handle changed endpoint.
Reviewers: paulfitz
Reviewed By: paulfitz
Differential Revision: https://phab.getgrist.com/D3966
2023-07-26 11:36:24 +02:00
..
2023-07-16 12:52:13 -04:00
2023-01-26 09:47:14 +01:00
2023-07-04 17:36:59 -04:00
2023-01-03 15:50:10 +01:00
2023-01-16 16:50:42 -08:00
2023-07-16 12:52:13 -04:00
2023-04-20 12:20:03 -04:00
2023-05-23 15:17:28 -04:00
2023-06-07 12:00:51 -04:00
2023-07-04 17:36:59 -04:00
2021-01-19 15:22:01 +01:00
2020-10-02 13:24:21 -04:00
2023-05-10 00:48:15 -04:00
2023-07-13 10:30:35 -04:00
2023-02-03 10:37:12 -05:00
2023-07-07 19:04:30 +02:00
2023-01-04 10:02:12 +01:00
2023-05-15 12:01:19 -04:00
2022-02-18 10:09:36 +01:00
2022-09-05 19:17:32 -07:00
2023-04-14 12:45:24 +02:00
2023-05-05 18:28:04 -04:00
2022-12-20 09:58:42 +01:00
2023-05-12 09:08:28 -04:00
2023-01-03 15:50:10 +01:00
2023-07-04 17:36:59 -04:00
2023-03-28 19:57:52 +02:00
2023-07-16 12:52:13 -04:00
2023-04-19 00:22:42 -04:00
2023-07-13 10:30:35 -04:00
2023-04-19 00:22:42 -04:00
2023-05-10 00:48:15 -04:00
2023-01-03 17:45:14 +01:00
2023-07-16 12:52:13 -04:00
2022-09-05 19:17:32 -07:00
2023-07-16 12:52:13 -04:00
2023-07-13 10:30:35 -04:00
2023-05-10 00:48:15 -04:00
2023-01-03 15:50:11 +01:00
2022-07-04 10:42:40 -04:00
2023-06-06 11:34:49 -04:00
2023-01-03 15:50:10 +01:00
2023-07-13 10:30:35 -04:00
2023-06-02 17:59:22 +02:00
2021-10-01 10:47:12 +02:00
2023-01-03 15:50:10 +01:00
2023-03-24 10:16:27 +01:00
2023-07-16 12:52:13 -04:00
2021-08-05 20:46:11 +02:00
2023-05-22 16:05:51 -04:00
2023-05-22 16:05:51 -04:00
2023-01-03 17:22:58 +01:00
2023-02-26 22:23:04 -05:00
2023-05-22 16:05:51 -04:00
2023-06-13 20:40:59 -04:00
2023-07-16 12:52:13 -04:00
2022-09-05 19:17:32 -07:00
2022-09-30 09:11:46 -07:00
2021-05-24 12:56:18 -04:00
2023-07-10 13:24:08 +02:00
2023-04-20 12:20:03 -04:00
2022-06-03 12:58:57 -04:00
2023-06-07 12:00:51 -04:00
2023-03-23 11:55:34 -04:00
2023-01-03 17:22:58 +01:00
2023-03-13 21:47:35 -04:00
2022-09-05 19:17:32 -07:00
2022-08-09 17:29:28 +02:00
2023-01-18 10:18:15 +01:00
2023-05-12 09:08:28 -04:00
2020-05-20 00:50:46 -04:00
2023-07-13 10:30:35 -04:00
2023-02-08 09:49:11 +01:00
2023-01-03 15:50:11 +01:00
2023-03-22 10:09:02 -04:00
2023-07-16 12:52:13 -04:00
2022-09-01 19:14:47 +02:00
2023-01-03 15:50:10 +01:00
2022-09-29 18:02:09 +02:00
2020-10-02 13:24:21 -04:00
2023-07-16 12:52:13 -04:00
2023-03-27 14:12:52 -04:00
2023-05-22 16:05:51 -04:00
2023-01-04 10:02:12 +01:00
2023-01-03 16:01:45 +01:00
2023-07-04 17:36:59 -04:00
2023-07-04 17:36:59 -04:00
2021-07-28 12:29:03 -07:00
2023-01-03 15:50:10 +01:00
2023-03-22 10:09:02 -04:00
2023-06-02 17:59:22 +02:00
2023-07-19 11:39:14 -04:00
2022-09-05 19:17:32 -07:00
2022-09-05 19:17:32 -07:00
2022-06-27 16:10:10 -04:00
2022-10-31 14:02:38 +01:00
2022-09-05 19:17:32 -07:00
2023-01-03 15:50:10 +01:00
2023-05-22 16:05:51 -04:00
2023-01-03 12:33:34 +01:00
2022-09-21 10:30:54 -04:00
2023-07-16 12:52:13 -04:00
2023-03-16 17:37:24 -04:00
2021-02-25 11:31:43 -05:00
2023-03-02 11:22:49 +01:00
2023-07-07 19:04:30 +02:00
2023-07-26 11:36:24 +02:00
2023-06-07 12:00:51 -04:00
2023-06-13 20:40:59 -04:00
2023-03-30 18:33:00 +02:00
2023-06-13 20:40:59 -04:00
2023-07-16 12:52:13 -04:00
2023-05-12 09:08:28 -04:00
2020-10-02 13:24:21 -04:00
2023-04-06 12:34:54 -04:00