diff --git a/packages/nocodb/src/schema/swagger.json b/packages/nocodb/src/schema/swagger.json index b9f8845b3a..e2f59247e1 100644 --- a/packages/nocodb/src/schema/swagger.json +++ b/packages/nocodb/src/schema/swagger.json @@ -15848,9 +15848,9 @@ "content": { "multipart/form-data": { "schema": { - "type":"object", - "properties":{ - "files":{ + "type": "object", + "properties": { + "files": { "type": "array", "required": true, "items": { @@ -15865,9 +15865,9 @@ "files": [ { "mimetype": "image/jpeg", - "fieldname":"files", + "fieldname": "files", "originalname": "22bc-kavypmq4869759 (1).jpg", - "encoding":"7bit", + "encoding": "7bit", "size": 13052, "buffer": "" } @@ -17187,19 +17187,31 @@ "schema": {} }, "examples": { - "Example 1" : { + "Example 1": { "value": { "link": [ - {"Id": 1}, - {"Id": 2}, - {"Id": 3}, - {"Id": 5}, - {"Id": 6} + { + "Id": 1 + }, + { + "Id": 2 + }, + { + "Id": 3 + }, + { + "Id": 5 + }, + { + "Id": 6 + } ], "unlink": [ - {"Id": 4} + { + "Id": 4 + } ] - } + } } } } @@ -17208,7 +17220,9 @@ "$ref": "#/components/responses/BadRequest" } }, - "tags": ["DB Data Table Row"], + "tags": [ + "DB Data Table Row" + ], "requestBody": { "required": true, "content": { @@ -17536,7 +17550,7 @@ "type": "string", "description": "Attachment URL to be uploaded via upload-by-url" }, - "fileName":{ + "fileName": { "type": "string", "description": "The name of the attachment file name" } @@ -17609,9 +17623,9 @@ "x-examples": { "Example 1": { "mimetype": "image/jpeg", - "fieldname":"files", + "fieldname": "files", "originalname": "22bc-kavypmq4869759 (1).jpg", - "encoding":"7bit", + "encoding": "7bit", "size": 13052, "buffer": "" } @@ -23308,13 +23322,15 @@ }, "CalendarRangeOrNull": { "description": "Model for CalendarRangeOrNull", - "example": [{ - "id": "kvc_2skkg5mi1eb37f", - "fk_from_column_id": "cl_hzos4ghyncqi4k", - "fk_to_column_id": "cl_hzos4ghyncqi4k", - "fk_view_id": "vw_wqs4zheuo5lgdy", - "label": "string" - }], + "example": [ + { + "id": "kvc_2skkg5mi1eb37f", + "fk_from_column_id": "cl_hzos4ghyncqi4k", + "fk_to_column_id": "cl_hzos4ghyncqi4k", + "fk_view_id": "vw_wqs4zheuo5lgdy", + "label": "string" + } + ], "oneOf": [ { "type": "null" @@ -25282,19 +25298,131 @@ "properties": { "operation": { "type": "string", - "enum": ["copy", "paste", "deleteAll"] + "enum": [ + "copy", + "paste", + "deleteAll" + ] }, "rowId": { "type": "string" }, - "columnId":{ + "columnId": { "type": "string" }, - "fk_related_model_id":{ + "fk_related_model_id": { "type": "string" } }, - "required": ["operation", "rowId", "columnId", "fk_related_model_id"] + "required": [ + "operation", + "rowId", + "columnId", + "fk_related_model_id" + ] + } + }, + "KanbanColumnReq": { + "description": "Model for Kanban Column Request", + "examples": [ + { + "title": "string", + "show": 0, + "order": "1" + } + ], + "title": "Kanban Column Model Request", + "type": "object", + "properties": { + "title": { + "type": "string", + "description": "Title" + }, + "show": { + "$ref": "#/components/schemas/Bool", + "description": "Is this column shown?" + }, + "order": { + "type": "number", + "example": 1, + "description": "Column Order" + } + } + }, + "GalleryColumnReq": { + "description": "Model for Gallery Column Request", + "examples": [ + { + "label": "My Column", + "width": "200px" + } + ], + "properties": { + "show": { + "$ref": "#/components/schemas/Bool", + "description": "Show" + }, + "order": { + "type": "number", + "description": "Order", + "example": 1 + } + } + }, + "CalendarColumnReq": { + "description": "Model for Calendar Column Request", + "examples": [ + { + "title": "string", + "show": 0, + "bold": 0, + "italic": 0, + "underline": 0, + "order": "1" + } + ], + "title": "Calendar Column Model", + "type": "object", + "properties": { + "show": { + "$ref": "#/components/schemas/Bool", + "x-stoplight": { + "id": "uqq8xmyz97t1u" + }, + "description": "Is this column shown?" + }, + "bold": { + "$ref": "#/components/schemas/Bool", + "x-stoplight": { + "id": "uqq8xmyz97t1u" + }, + "description": "Is this column shown as bold?" + }, + "italic": { + "$ref": "#/components/schemas/Bool", + "x-stoplight": { + "id": "uqq8xmyz97t1u" + }, + "description": "Is this column shown as italic?" + }, + "underline": { + "$ref": "#/components/schemas/Bool", + "x-stoplight": { + "id": "uqq8xmyz97t1u" + }, + "description": "Is this column shown underlines?" + }, + "order": { + "type": "number", + "x-stoplight": { + "id": "pbnchzgci5dwa" + }, + "example": 1, + "description": "Column Order" + } + }, + "x-stoplight": { + "id": "psbv6c6y9qvbu" } } },