-
Notifications
You must be signed in to change notification settings - Fork 31
Create Table
nbajiaoshi edited this page Jun 4, 2018
·
13 revisions
POST /api/createTable
Return the a unique identifier between the created table and the given sheet region and a unique shared link for the created table.
Field | Data Type | Description |
---|---|---|
bookId | String | The id of the current book. |
sheetName | String | The name of the current sheet. |
tableName | String | The name of the created table. |
row1 | Int | The row where the table begins on the sheet. |
row2 | Int | The row where the table ends on the sheet. |
col1 | Int | The column where the table begins on the sheet. |
col2 | Int | The column where the table ends on the sheet. |
schema | List(String) | List of type corresponding to each column. |
POST https://localhost:8080/api/createTable
JSON Parameters:
{
"bookId":"demo",
"sheetName":"Sheet1",
"tableName":"student",
"row1":0,
"row2":4,
"col1":0,
"col2":3,
"schema":[
"TEXT",
"INTEGER",
"FLOAT",
"INTEGER"
]
}
{
"status": "success",
"message": null,
"data": {
"linkTableId":"ajh6u3yqb",
"link":"vjh6u3yqsFYTAMONBUX"
}
}