Browse Source

refactor(nocodb): hook filter response & example

pull/5269/head
Wing-Kam Wong 2 years ago
parent
commit
95a2f104a2
  1. 71
      packages/nocodb/src/schema/swagger.json

71
packages/nocodb/src/schema/swagger.json

@ -5411,7 +5411,46 @@
"operationId": "db-table-webhook-filter-read",
"responses": {
"200": {
"$ref": "#/components/responses/FilterList"
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FilterList"
},
"examples": {
"Example 1": {
"value": {
"list": [
{
"base_id": "ds_g4ccx6e77h1dmi",
"comparison_op": "eq",
"comparison_sub_op": null,
"created_at": "2023-03-02 18:18:05",
"fk_column_id": "cl_d7ah9n2qfupgys",
"fk_hook_id": null,
"fk_parent_id": null,
"fk_view_id": "vw_b739e29vqmrxnf",
"id": "fi_xn647tpmdq8fu8",
"is_group": null,
"logical_op": "and",
"order": 1,
"project_id": "p_xm3thidrblw4n7",
"updated_at": "2023-03-02 18:18:05",
"value": "foo"
}
],
"pageInfo": {
"isFirstPage": true,
"isLastPage": true,
"page": 1,
"pageSize": 10,
"totalRows": 1
}
}
}
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
@ -5430,7 +5469,35 @@
"operationId": "db-table-webhook-filter-create",
"responses": {
"200": {
"description": "OK"
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Filter"
},
"examples": {
"Example 1": {
"value": {
"base_id": "ds_g4ccx6e77h1dmi",
"comparison_op": "eq",
"comparison_sub_op": null,
"created_at": "2023-03-02 18:18:05",
"fk_column_id": "cl_d7ah9n2qfupgys",
"fk_hook_id": null,
"fk_parent_id": null,
"fk_view_id": "vw_b739e29vqmrxnf",
"id": "fi_xn647tpmdq8fu8",
"is_group": null,
"logical_op": "and",
"order": 1,
"project_id": "p_xm3thidrblw4n7",
"updated_at": "2023-03-02 18:18:05",
"value": "foo"
}
}
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"

Loading…
Cancel
Save