Browse Source

refactor(nocodb): change base alias to StringOrNull and revise examples

pull/5222/head
Wing-Kam Wong 2 years ago
parent
commit
d1ebaa9a32
  1. 99
      packages/nocodb/src/schema/swagger.json

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

@ -7244,9 +7244,8 @@
"description": "The project ID that this base belongs to" "description": "The project ID that this base belongs to"
}, },
"alias": { "alias": {
"type": "string", "$ref": "#/components/schemas/StringOrNull",
"description": "Base Name - Default BASE will be null by default", "description": "Base Name - Default BASE will be null by default"
"example": "My Base"
}, },
"type": { "type": {
"type": "string", "type": "string",
@ -7353,24 +7352,40 @@
"bases": { "bases": {
"list": [ "list": [
{ {
"id": "string", "id": "ds_krsappzu9f8vmo",
"project_id": "string", "project_id": "p_01clqvzik3izk6",
"alias": "string", "alias": null,
"host": "string", "config": "<ENCRYPTED>",
"port": 0, "meta": null,
"username": "string", "is_meta": 1,
"password": "string", "type": "mysql2",
"database": "string", "inflection_column": "camelize",
"url": "string", "inflection_table": "camelize",
"params": "string", "created_at": "2023-03-01 16:31:49",
"type": "string", "updated_at": "2023-03-02 11:28:17",
"ssl": "string" "enabled": 1,
"order": 1
},
{
"id": "ds_btbdt19zde0gj9",
"project_id": "p_01clqvzik3izk6",
"alias": "sakila",
"config": "<ENCRYPTED>",
"meta": null,
"is_meta": null,
"type": "mysql2",
"inflection_column": "camelize",
"inflection_table": "camelize",
"created_at": "2023-03-02 11:28:17",
"updated_at": "2023-03-02 11:28:17",
"enabled": 1,
"order": 2
} }
], ],
"pageInfo": { "pageInfo": {
"pageSize": 0, "totalRows": 2,
"totalRows": 0, "page": 1,
"sort": "string", "pageSize": 2,
"isFirstPage": true, "isFirstPage": true,
"isLastPage": true "isLastPage": true
} }
@ -9015,7 +9030,7 @@
"show": { "show": {
"type": "number", "type": "number",
"description": "Whether to show this column or not", "description": "Whether to show this column or not",
"example": "1" "example": 1
}, },
"order": { "order": {
"type": "number", "type": "number",
@ -10655,24 +10670,40 @@
"bases": { "bases": {
"list": [ "list": [
{ {
"id": "string", "id": "ds_krsappzu9f8vmo",
"project_id": "string", "project_id": "p_01clqvzik3izk6",
"alias": "string", "alias": null,
"host": "string", "config": "<ENCRYPTED>",
"port": 0, "meta": null,
"username": "string", "is_meta": 1,
"password": "string", "type": "mysql2",
"database": "string", "inflection_column": "camelize",
"url": "string", "inflection_table": "camelize",
"params": "string", "created_at": "2023-03-01 16:31:49",
"type": "string", "updated_at": "2023-03-02 11:28:17",
"ssl": "string" "enabled": 1,
"order": 1
},
{
"id": "ds_btbdt19zde0gj9",
"project_id": "p_01clqvzik3izk6",
"alias": "sakila",
"config": "<ENCRYPTED>",
"meta": null,
"is_meta": null,
"type": "mysql2",
"inflection_column": "camelize",
"inflection_table": "camelize",
"created_at": "2023-03-02 11:28:17",
"updated_at": "2023-03-02 11:28:17",
"enabled": 1,
"order": 2
} }
], ],
"pageInfo": { "pageInfo": {
"pageSize": 0, "totalRows": 2,
"totalRows": 0, "page": 1,
"sort": "string", "pageSize": 2,
"isFirstPage": true, "isFirstPage": true,
"isLastPage": true "isLastPage": true
} }

Loading…
Cancel
Save