|
4589 | 4589 | ]
|
4590 | 4590 | }
|
4591 | 4591 | },
|
| 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 | + }, |
4592 | 4682 | "/api/v1/db/meta/projects/{baseId}/{sourceId}/tables": {
|
4593 | 4683 | "parameters": [
|
4594 | 4684 | {
|
@@ -14939,15 +15029,30 @@
|
14939 | 15029 | "content": {
|
14940 | 15030 | "multipart/form-data": {
|
14941 | 15031 | "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 | + } |
14943 | 15042 | },
|
14944 | 15043 | "examples": {
|
14945 | 15044 | "Example 1": {
|
14946 | 15045 | "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 | + ] |
14951 | 15056 | }
|
14952 | 15057 | }
|
14953 | 15058 | }
|
@@ -16478,12 +16583,59 @@
|
16478 | 16583 | "url": {
|
16479 | 16584 | "type": "string",
|
16480 | 16585 | "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" |
16481 | 16590 | }
|
16482 | 16591 | },
|
16483 | 16592 | "x-stoplight": {
|
16484 | 16593 | "id": "6cr1iwhbyxncd"
|
16485 | 16594 | }
|
16486 | 16595 | },
|
| 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 | + }, |
16487 | 16639 | "Audit": {
|
16488 | 16640 | "description": "Model for Audit",
|
16489 | 16641 | "examples": [
|
|
17365 | 17517 | "maxLength": 255,
|
17366 | 17518 | "minLength": 1,
|
17367 | 17519 | "type": "string"
|
| 17520 | + }, |
| 17521 | + "view_id": { |
| 17522 | + "type": "string" |
17368 | 17523 | }
|
17369 | 17524 | },
|
17370 | 17525 | "required": [
|
@@ -20524,10 +20679,13 @@
|
20524 | 20679 | ],
|
20525 | 20680 | "properties": {
|
20526 | 20681 | "currentPassword": {
|
| 20682 | + "minLength": 8, |
| 20683 | + "maxLength": 128, |
20527 | 20684 | "type": "string"
|
20528 | 20685 | },
|
20529 | 20686 | "newPassword": {
|
20530 | 20687 | "minLength": 8,
|
| 20688 | + "maxLength": 128, |
20531 | 20689 | "type": "string"
|
20532 | 20690 | }
|
20533 | 20691 | },
|
|
20576 | 20734 | "description": "New password",
|
20577 | 20735 | "example": "newpassword",
|
20578 | 20736 | "minLength": 8,
|
| 20737 | + "maxLength": 128, |
20579 | 20738 | "type": "string"
|
20580 | 20739 | }
|
20581 | 20740 | },
|
|
21596 | 21755 | "description": "Password of the user",
|
21597 | 21756 | "example": "password123456789",
|
21598 | 21757 | "minLength": 8,
|
| 21758 | + "maxLength": 128, |
21599 | 21759 | "type": "string"
|
21600 | 21760 | },
|
21601 | 21761 | "firstname": {
|
|
0 commit comments