|
|
|
@ -116,6 +116,34 @@ components: |
|
|
|
- type: integer |
|
|
|
- type: array |
|
|
|
- type: boolean |
|
|
|
table: |
|
|
|
description: The table to be created/updated. |
|
|
|
type: object |
|
|
|
properties: |
|
|
|
name: |
|
|
|
description: The name of the table |
|
|
|
type: string |
|
|
|
schema: |
|
|
|
type: object |
|
|
|
additionalProperties: |
|
|
|
type: object |
|
|
|
properties: |
|
|
|
type: |
|
|
|
type: string |
|
|
|
enum: |
|
|
|
- string |
|
|
|
- longform |
|
|
|
- options |
|
|
|
- number |
|
|
|
- boolean |
|
|
|
- array |
|
|
|
- datetime |
|
|
|
- attachment |
|
|
|
- link |
|
|
|
- formula |
|
|
|
- auto |
|
|
|
- json |
|
|
|
- internal |
|
|
|
security: |
|
|
|
- ApiKeyAuth: [] |
|
|
|
paths: |
|
|
|
@ -340,11 +368,20 @@ paths: |
|
|
|
/tables/search: |
|
|
|
post: |
|
|
|
summary: Search internal and external tables based on their name. |
|
|
|
parameters: |
|
|
|
- $ref: "#/components/parameters/appId" |
|
|
|
tags: |
|
|
|
- tables |
|
|
|
requestBody: null |
|
|
|
parameters: |
|
|
|
- $ref: "#/components/parameters/appId" |
|
|
|
requestBody: |
|
|
|
content: |
|
|
|
application/json: |
|
|
|
schema: |
|
|
|
type: object |
|
|
|
properties: |
|
|
|
name: |
|
|
|
type: string |
|
|
|
description: The name of the table, this should be an exact match (ignoring |
|
|
|
case). |
|
|
|
responses: |
|
|
|
"200": |
|
|
|
description: Returns the found tables, based on the search parameters. |
|
|
|
@ -360,10 +397,18 @@ paths: |
|
|
|
/tables: |
|
|
|
post: |
|
|
|
summary: Create a new table. |
|
|
|
parameters: |
|
|
|
- $ref: "#/components/parameters/appId" |
|
|
|
tags: |
|
|
|
- tables |
|
|
|
parameters: |
|
|
|
- $ref: "#/components/parameters/appId" |
|
|
|
requestBody: |
|
|
|
content: |
|
|
|
application/json: |
|
|
|
schema: |
|
|
|
$ref: "#/components/schemas/table" |
|
|
|
examples: |
|
|
|
table: |
|
|
|
$ref: "#/components/examples/table" |
|
|
|
responses: |
|
|
|
"200": |
|
|
|
description: Returns the created table, including the ID which has been |
|
|
|
@ -400,6 +445,14 @@ paths: |
|
|
|
parameters: |
|
|
|
- $ref: "#/components/parameters/tableId" |
|
|
|
- $ref: "#/components/parameters/appId" |
|
|
|
requestBody: |
|
|
|
content: |
|
|
|
application/json: |
|
|
|
schema: |
|
|
|
$ref: "#/components/schemas/table" |
|
|
|
examples: |
|
|
|
table: |
|
|
|
$ref: "#/components/examples/table" |
|
|
|
responses: |
|
|
|
"200": |
|
|
|
description: Returns the updated table. |
|
|
|
|