Skip to content

Commit fa7d315

Browse files
committed
Autorelease from github.com/nocodb/nocodb
1 parent 59cd294 commit fa7d315

File tree

1 file changed

+165
-5
lines changed

1 file changed

+165
-5
lines changed

meta-apis-v1/swagger.json

+165-5
Original file line numberDiff line numberDiff line change
@@ -4589,6 +4589,96 @@
45894589
]
45904590
}
45914591
},
4592+
"/api/v1/db/meta/duplicate/{baseId}/column/{columnId}": {
4593+
"post": {
4594+
"summary": "Duplicate Column",
4595+
"operationId": "duplicate-column",
4596+
"responses": {
4597+
"200": {
4598+
"description": "OK",
4599+
"content": {
4600+
"application/json": {
4601+
"schema": {
4602+
"type": "object",
4603+
"properties": {
4604+
"name": {
4605+
"type": "string"
4606+
},
4607+
"id": {
4608+
"type": "string"
4609+
}
4610+
}
4611+
}
4612+
}
4613+
}
4614+
},
4615+
"400": {
4616+
"$ref": "#/components/responses/BadRequest"
4617+
}
4618+
},
4619+
"requestBody": {
4620+
"content": {
4621+
"application/json": {
4622+
"schema": {
4623+
"type": "object",
4624+
"properties": {
4625+
"options": {
4626+
"type": "object",
4627+
"properties": {
4628+
"excludeData": {
4629+
"type": "boolean",
4630+
"required": false
4631+
}
4632+
}
4633+
},
4634+
"extra": {
4635+
"type": "object"
4636+
}
4637+
}
4638+
},
4639+
"examples": {
4640+
"Example 1": {
4641+
"value": {
4642+
"excludeData": true
4643+
}
4644+
}
4645+
}
4646+
}
4647+
}
4648+
},
4649+
"tags": [
4650+
"DB Table"
4651+
],
4652+
"description": "Duplicate a column",
4653+
"parameters": [
4654+
{
4655+
"$ref": "#/components/parameters/xc-auth"
4656+
},
4657+
{
4658+
"schema": {
4659+
"$ref": "#/components/schemas/Id",
4660+
"example": "p_124hhlkbeasewh",
4661+
"type": "string"
4662+
},
4663+
"name": "baseId",
4664+
"in": "path",
4665+
"required": true,
4666+
"description": "Unique Base ID"
4667+
},
4668+
{
4669+
"schema": {
4670+
"$ref": "#/components/schemas/Id",
4671+
"example": "md_124hhlkbeasewh",
4672+
"type": "string"
4673+
},
4674+
"name": "columnId",
4675+
"in": "path",
4676+
"required": true,
4677+
"description": "Unique Column ID"
4678+
}
4679+
]
4680+
}
4681+
},
45924682
"/api/v1/db/meta/projects/{baseId}/{sourceId}/tables": {
45934683
"parameters": [
45944684
{
@@ -14939,15 +15029,30 @@
1493915029
"content": {
1494015030
"multipart/form-data": {
1494115031
"schema": {
14942-
"$ref": "#/components/schemas/AttachmentReq"
15032+
"type":"object",
15033+
"properties":{
15034+
"files":{
15035+
"type": "array",
15036+
"required": true,
15037+
"items": {
15038+
"$ref": "#/components/schemas/FileReq"
15039+
}
15040+
}
15041+
}
1494315042
},
1494415043
"examples": {
1494515044
"Example 1": {
1494615045
"value": {
14947-
"mimetype": "image/jpeg",
14948-
"path": "download/noco/jango_fett/Table1/attachment/uVbjPVQxC_SSfs8Ctx.jpg",
14949-
"size": 13052,
14950-
"title": "22bc-kavypmq4869759 (1).jpg"
15046+
"files": [
15047+
{
15048+
"mimetype": "image/jpeg",
15049+
"fieldname":"files",
15050+
"originalname": "22bc-kavypmq4869759 (1).jpg",
15051+
"encoding":"7bit",
15052+
"size": 13052,
15053+
"buffer": "<Buffer 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 03 20 00 00 02 58 08 02 00 00 00 15 14 15 27 00 00 00 09 70 48 59 73 00 00 0b 13 00 00 0b 13 01 >"
15054+
}
15055+
]
1495115056
}
1495215057
}
1495315058
}
@@ -16478,12 +16583,59 @@
1647816583
"url": {
1647916584
"type": "string",
1648016585
"description": "Attachment URL to be uploaded via upload-by-url"
16586+
},
16587+
"fileName":{
16588+
"type": "string",
16589+
"description": "The name of the attachment file name"
1648116590
}
1648216591
},
1648316592
"x-stoplight": {
1648416593
"id": "6cr1iwhbyxncd"
1648516594
}
1648616595
},
16596+
"FileReq": {
16597+
"description": "Model for File Request",
16598+
"type": "object",
16599+
"x-examples": {
16600+
"Example 1": {
16601+
"mimetype": "image/jpeg",
16602+
"fieldname":"files",
16603+
"originalname": "22bc-kavypmq4869759 (1).jpg",
16604+
"encoding":"7bit",
16605+
"size": 13052,
16606+
"buffer": "<Buffer 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 03 20 00 00 02 58 08 02 00 00 00 15 14 15 27 00 00 00 09 70 48 59 73 00 00 0b 13 00 00 0b 13 01 >"
16607+
}
16608+
},
16609+
"title": "File Request Model",
16610+
"properties": {
16611+
"mimetype": {
16612+
"type": "string",
16613+
"description": "The mimetype of the file"
16614+
},
16615+
"fieldname": {
16616+
"type": "string",
16617+
"description": "The name of the input used to upload the file"
16618+
},
16619+
"originalname": {
16620+
"type": "string",
16621+
"description": "The original name of the file"
16622+
},
16623+
"size": {
16624+
"type": "number",
16625+
"description": "The size of the file"
16626+
},
16627+
"encoding": {
16628+
"type": "string",
16629+
"description": "The encoding of the file"
16630+
},
16631+
"buffer": {
16632+
"description": "An buffer array containing the file content"
16633+
}
16634+
},
16635+
"x-stoplight": {
16636+
"id": null
16637+
}
16638+
},
1648716639
"Audit": {
1648816640
"description": "Model for Audit",
1648916641
"examples": [
@@ -17365,6 +17517,9 @@
1736517517
"maxLength": 255,
1736617518
"minLength": 1,
1736717519
"type": "string"
17520+
},
17521+
"view_id": {
17522+
"type": "string"
1736817523
}
1736917524
},
1737017525
"required": [
@@ -20524,10 +20679,13 @@
2052420679
],
2052520680
"properties": {
2052620681
"currentPassword": {
20682+
"minLength": 8,
20683+
"maxLength": 128,
2052720684
"type": "string"
2052820685
},
2052920686
"newPassword": {
2053020687
"minLength": 8,
20688+
"maxLength": 128,
2053120689
"type": "string"
2053220690
}
2053320691
},
@@ -20576,6 +20734,7 @@
2057620734
"description": "New password",
2057720735
"example": "newpassword",
2057820736
"minLength": 8,
20737+
"maxLength": 128,
2057920738
"type": "string"
2058020739
}
2058120740
},
@@ -21596,6 +21755,7 @@
2159621755
"description": "Password of the user",
2159721756
"example": "password123456789",
2159821757
"minLength": 8,
21758+
"maxLength": 128,
2159921759
"type": "string"
2160021760
},
2160121761
"firstname": {

0 commit comments

Comments
 (0)