Browse Source

refactor(nocodb): update view response and example

pull/5269/head
Wing-Kam Wong 2 years ago
parent
commit
3ef33486a0
  1. 98
      packages/nocodb/src/schema/swagger.json

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

@ -5957,11 +5957,23 @@
} }
], ],
"patch": { "patch": {
"summary": "Update Form", "summary": "Update Form View",
"operationId": "db-view-form-update", "operationId": "db-view-form-update",
"responses": { "responses": {
"200": { "200": {
"description": "OK" "description": "OK",
"content": {
"application/json": {
"schema": {
"type": "number"
},
"examples": {
"Example 1": {
"value": 1
}
}
}
}
}, },
"400": { "400": {
"$ref": "#/components/responses/BadRequest" "$ref": "#/components/responses/BadRequest"
@ -6135,7 +6147,14 @@
"description": "OK", "description": "OK",
"content": { "content": {
"application/json": { "application/json": {
"schema": {} "schema": {
"type": "number"
},
"examples": {
"Example 1": {
"value": 1
}
}
} }
} }
}, },
@ -6392,7 +6411,19 @@
"operationId": "db-view-gallery-update", "operationId": "db-view-gallery-update",
"responses": { "responses": {
"200": { "200": {
"description": "OK" "description": "OK",
"content": {
"application/json": {
"schema": {
"type": "number"
},
"examples": {
"Example 1": {
"value": 1
}
}
}
}
}, },
"400": { "400": {
"$ref": "#/components/responses/BadRequest" "$ref": "#/components/responses/BadRequest"
@ -6404,7 +6435,8 @@
"application/json": { "application/json": {
"schema": { "schema": {
"$ref": "#/components/schemas/GalleryReq" "$ref": "#/components/schemas/GalleryReq"
} },
"examples": {}
} }
} }
}, },
@ -6519,7 +6551,19 @@
"operationId": "db-view-kanban-update", "operationId": "db-view-kanban-update",
"responses": { "responses": {
"200": { "200": {
"description": "OK" "description": "OK",
"content": {
"application/json": {
"schema": {
"type": "number"
},
"examples": {
"Example 1": {
"value": 1
}
}
}
}
}, },
"400": { "400": {
"$ref": "#/components/responses/BadRequest" "$ref": "#/components/responses/BadRequest"
@ -6531,7 +6575,8 @@
"application/json": { "application/json": {
"schema": { "schema": {
"$ref": "#/components/schemas/KanbanUpdateReq" "$ref": "#/components/schemas/KanbanUpdateReq"
} },
"examples": {}
} }
} }
}, },
@ -6664,7 +6709,19 @@
"operationId": "db-view-map-update", "operationId": "db-view-map-update",
"responses": { "responses": {
"200": { "200": {
"description": "OK" "description": "OK",
"content": {
"application/json": {
"schema": {
"type": "number"
},
"examples": {
"Example 1": {
"value": 1
}
}
}
}
}, },
"400": { "400": {
"$ref": "#/components/responses/BadRequest" "$ref": "#/components/responses/BadRequest"
@ -6676,6 +6733,31 @@
"application/json": { "application/json": {
"schema": { "schema": {
"$ref": "#/components/schemas/Map" "$ref": "#/components/schemas/Map"
},
"examples": {
"Example 1": {
"value": {
"base_id": "ds_g4ccx6e77h1dmi",
"columns": [
{
"base_id": "ds_g4ccx6e77h1dmi",
"fk_column_id": "cl_8iw2o4ejzvdyna",
"fk_view_id": "vw_qjt7klod1p9kyv",
"id": "nc_46xcacqn4rc9xf",
"order": 1,
"project_id": "p_xm3thidrblw4n7",
"show": 1
}
],
"fk_geo_data_col_id": "cl_8iw2o4ejzvdyna",
"fk_view_id": "vw_qjt7klod1p9kyv",
"meta": {},
"order": 0,
"project_id": "p_xm3thidrblw4n7",
"show": true,
"title": "My Map"
}
}
} }
} }
} }

Loading…
Cancel
Save