Skip to content

Commit d692f42

Browse files
committed
fix broken links
1 parent 32b0bc6 commit d692f42

File tree

7 files changed

+27
-18
lines changed

7 files changed

+27
-18
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@
55
/tests/diff*
66
/tests/.hypothesis
77
/tests/__pycache__
8-
.vscode
8+
.vscode
9+
result-*.txt

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,9 @@ git push --tags
9898
```
9999

100100
Pushing the tag triggers a GitHub Action that runs the `sync-with-postman.sh` script.
101-
This action requires the GitHub secret `POSTMAN_API_KEY`, which you can generate at: https://seatable.postman.co/settings/me/api-keys.
101+
This action requires the GitHub secret `POSTMAN_API_KEY`, which you can generate at: https://seatable.postman.co/settings/me/api-keys.
102+
103+
## Check for Invalid Links
104+
105+
Run `./check-links.sh` to validate all links in this OpenAPI documentation.
106+
This script generates a `result-YYYY-MM-DD.txt` file listing all valid and invalid links. Search this file for **404** errors or other issues and fix them accordingly.

base_operations.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2440,7 +2440,7 @@ paths:
24402440
>
24412441
> New rows (INSERT statement) are always added to the **big data backend**. An error message will be returned, if the big data backend is not activated for the target base.
24422442
2443-
The complete [SQL Reference](https://developer.seatable.com/scripts/sql/reference/) can be found documentation in the developer manual.
2443+
The complete [SQL Reference](https://developer.seatable.com/scripts/sql/functions/) can be found documentation in the developer manual.
24442444
24452445
Here are some example requests for a fictitious table *Family* with the columns *name*, *age* and *birthday*:
24462446

check-links.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
#!/bin/bash
22

33
echo "Extracting links into /tmp/seatable-openapi-links.txt"
4-
grep -oP --no-filename '\]\(\K[^\)]+(?=\))' intro/*.md ./*.yaml | awk '/^\// {print "https://api.seatable.io" $0; next} {print}' > /tmp/seatable-openapi-links.txt
5-
COUNT=$(wc -l < /tmp/seatable-openapi.links.txt)
4+
grep -oP --no-filename '\]\(\K[^\)]+(?=\))' intro/*.md ./*.yaml | awk '/^\// {print "https://api.seatable.com" $0; next} {print}' > /tmp/seatable-openapi-links.txt
5+
6+
# clean unwanted urls:
7+
sed -i '/^https/!d' /tmp/seatable-openapi-links.txt
8+
9+
COUNT=$(wc -l < /tmp/seatable-openapi-links.txt)
610
echo -e "Found ${COUNT} links!\n"
711

812
INPUT_FILE="/tmp/seatable-openapi-links.txt"

intro/changelog.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ Listed below are all the changes to the SeaTable API. Each date corresponds to a
5757
> **Account Operations - System Admin**
5858
>
5959
> - [List Virus Files](/reference/listvirusfiles) <span class="APIMethod APIMethod_fixedWidth APIMethod_get">get</span>
60-
> - [Update Virus Files](/reference/updatevirusfiles) <span class="APIMethod APIMethod_fixedWidth APIMethod_put">put</span>
61-
> - [Delete Virus Files](/reference/deletevirusfiles) <span class="APIMethod APIMethod_fixedWidth APIMethod_delete">delete</span>
60+
> - [Update Virus Files](/reference/updatevirusfile) <span class="APIMethod APIMethod_fixedWidth APIMethod_put">put</span>
61+
> - [Delete Virus Files](/reference/deletevirusfile) <span class="APIMethod APIMethod_fixedWidth APIMethod_delete">delete</span>
6262
6363
## Version 5.2 (25.02.2025)
6464

@@ -107,13 +107,13 @@ We recommend using the new `/api-gateway/` endpoints. These endpoints are faster
107107

108108
> 🚧 Breaking changes
109109
>
110-
> - [Get Row](/reference/getrowdeprecated) and [List Rows](/reference/listrowsdeprecated): `Link` now returns an array containing `display_value` and `row_id` instead of a string with only the `display_value`. This change harmonizes the output with `Get Row` and `List Rows with SQL` endpoints.
111-
> - [Get Row](/reference/getrowdeprecated) and [List Rows](/reference/listrowsdeprecated): `Link Formula` now returns the right output type depending of the result. Single numbers are returned as integers, multiple values as arrays. This change harmonizes the output of the `Get Row`, `List Rows` and `List Rows with SQL` endpoints.
110+
> - [Get Row](/reference/getrow) and [List Rows](/reference/listrows): `Link` now returns an array containing `display_value` and `row_id` instead of a string with only the `display_value`. This change harmonizes the output with `Get Row` and `List Rows with SQL` endpoints.
111+
> - [Get Row](/reference/getrow) and [List Rows](/reference/listrows): `Link Formula` now returns the right output type depending of the result. Single numbers are returned as integers, multiple values as arrays. This change harmonizes the output of the `Get Row`, `List Rows` and `List Rows with SQL` endpoints.
112112
113113
> 👍 Other changes
114114
>
115-
> - [Get Row](/reference/getrowdeprecated): All column values are now consistently returned. If a value is not defined, `null` is returned instead of omitting the value.
116-
> - [List Rows](/reference/listrowsdeprecated): All column values are now consistently returned. If a value is not defined, `null` is returned instead of omitting the value.
115+
> - [Get Row](/reference/getrow): All column values are now consistently returned. If a value is not defined, `null` is returned instead of omitting the value.
116+
> - [List Rows](/reference/listrows): All column values are now consistently returned. If a value is not defined, `null` is returned instead of omitting the value.
117117
> - [Query SeaTable with SQL](/reference/querysql): Now supports `parameters` to protect against SQL injection.
118118
119119
For more details about the changes, please refer to [this post on the SeaTable Forum](https://forum.seatable.com/t/important-changes-to-api-and-seatable-cloud-with-version-5-0/4887).
@@ -131,11 +131,11 @@ The SeaTable API Reference for version 4.4 is no longer accessible here. However
131131
> 🚧 Breaking changes
132132
>
133133
> - data collection table calls (user) were removed. This was done because data collection tables will be disabled in general with version 5.0. In SeaTable Cloud this feature was never available.
134-
> - [Get Row](/reference/getrowdeprecated): `_mtime` and `_ctime` are not returned if these column types are defined in this base. This is to harmonize the output with `List Rows` and `List Rows with SQL`.
134+
> - [Get Row](/reference/getrow): `_mtime` and `_ctime` are not returned if these column types are defined in this base. This is to harmonize the output with `List Rows` and `List Rows with SQL`.
135135
136136
> 👍 Other changes
137137
>
138-
> - [List Rows](/reference/listrowsdeprecated): The options `order_by` and `direction` were removed to avoid conflict situations with a selected view.
138+
> - [List Rows](/reference/listrows): The options `order_by` and `direction` were removed to avoid conflict situations with a selected view.
139139
> - API-Gateway calls now return the current api usage and limits via X-header.
140140
141141
## Version 4.3 (08.02.2024)
@@ -146,8 +146,8 @@ The SeaTable API Reference for version 4.3 is no longer accessible here. However
146146
>
147147
> **Base Operations**
148148
>
149-
> - [Create Row Links in Big Data](/reference/createbigdatarowslinkdeprecated) <span class="APIMethod APIMethod_fixedWidth APIMethod_post">post</span> `/dtable-db/api/v1/base/{base_uuid}/links/`
150-
> - [Delete Row Links in Big Data](/reference/deletebigdatarowlinksdeprecated) <span class="APIMethod APIMethod_fixedWidth APIMethod_delete">delete</span> `/dtable-db/api/v1/base/{base_uuid}/links/`
149+
> - **Create Row Links in Big Data** <span class="APIMethod APIMethod_fixedWidth APIMethod_post">post</span> `/dtable-db/api/v1/base/{base_uuid}/links/`
150+
> - **Delete Row Links in Big Data** <span class="APIMethod APIMethod_fixedWidth APIMethod_delete">delete</span> `/dtable-db/api/v1/base/{base_uuid}/links/`
151151
>
152152
> **Account Operations - System Admin**
153153
>

intro/introduction.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@ To [update a row](https://api.seatable.com/reference/updaterow) you need to know
189189

190190
- [List Rows (with SQL)](https://api.seatable.com/reference/querysql)
191191
- [List Rows](https://api.seatable.com/reference/listrows)
192-
- [Base Info](https://api.seatable.com/reference/getbaseinfo)
193192

194193
#### Step 2: Update the row
195194

intro/limits.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,5 @@ Besides the rate limits, there are size limits for how many rows a **single call
8484
| [Insert, Update or Delete Rows (with SQL)](https://api.seatable.com/reference/querysql)<br/>`POST /api-gateway/api/v2/dtables/{...}/sql/` | unlimited |
8585
| [List rows](https://api.seatable.com/reference/listrows)<br/>`GET /api-gateway/api/v2/dtables/{...}/rows/` | 1.000 |
8686
| [Append rows](https://api.seatable.com/reference/appendrows)<br/>`POST /api-gateway/api/v2/dtables/{...}/rows/` | 1.000 |
87-
| [Update rows](https://api.seatable.com/reference/updaterows)<br/>`PUT /api-gateway/api/v2/dtables/{...}/rows/` | 1.000 |
88-
| [Delete rows](https://api.seatable.com/reference/deleterows)<br/>`DELETE /api-gateway/api/v2/dtables/{base_uuid}/rows/` | 10.000 |
87+
| [Update rows](https://api.seatable.com/reference/updaterow)<br/>`PUT /api-gateway/api/v2/dtables/{...}/rows/` | 1.000 |
88+
| [Delete rows](https://api.seatable.com/reference/deleterow)<br/>`DELETE /api-gateway/api/v2/dtables/{base_uuid}/rows/` | 10.000 |

0 commit comments

Comments
 (0)