Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions api/grist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2111,13 +2111,52 @@ paths:
summary: "List tables in a document"
parameters:
- $ref: '#/components/parameters/docIdPathParam'
- $ref: '#/components/parameters/expandQueryParam'
responses:
200:
description: The tables in a document
content:
application/json:
schema:
$ref: "#/components/schemas/TablesList"
examples:
default:
summary: "Without expand"
value:
tables:
- id: People
fields:
tableRef: 1
onDemand: false
- id: Places
fields:
tableRef: 2
onDemand: false
expanded:
summary: "With ?expand=column"
value:
tables:
- id: People
fields:
tableRef: 1
onDemand: false
columns:
- id: Name
fields:
colRef: 2
label: "Name"
isFormula: false
type: "Text"
parentId: 1
formula: ""
- id: Age
fields:
colRef: 3
label: "Age"
isFormula: false
type: "Numeric"
parentId: 1
formula: ""
post:
operationId: "addTables"
tags:
Expand Down Expand Up @@ -3532,6 +3571,20 @@ components:
onDemand:
type: boolean
description: Whether the table uses on-demand loading
columns:
type: array
description: "Included when expand=column is set. Contains metadata for each column in the table."
items:
type: object
required:
- id
- fields
properties:
id:
type: string
example: ColumnName
fields:
$ref: "#/components/schemas/GetFields"
example:
tables:
- id: People
Expand Down Expand Up @@ -4208,6 +4261,15 @@ components:
schema:
type: boolean
description: "Set to true to include the hidden columns (like \"manualSort\")"
expandQueryParam:
in: query
name: expand
schema:
type: string
enum:
- column
description: "Set to \"column\" to include column metadata for each table in the response."
required: false
headerQueryParam:
in: query
name: header
Expand Down
Loading