Skip to content

Commit 150d556

Browse files
authored
Merge pull request #51 from seatable/fix-links
Fix dead links
2 parents 11f854f + d134c33 commit 150d556

File tree

4 files changed

+42
-16
lines changed

4 files changed

+42
-16
lines changed

check-links.sh

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/bin/bash
2+
3+
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)
6+
echo -e "Found ${COUNT} links!\n"
7+
8+
INPUT_FILE="/tmp/seatable-openapi-links.txt"
9+
NOW=$(date +"%Y-%m-%d-%H-%M-%S")
10+
OUTPUT_FILE="result-${NOW}.txt"
11+
12+
# Process URLs
13+
while IFS= read -r url; do
14+
if [ -z "$url" ]; then
15+
continue
16+
fi
17+
18+
echo "Checking: $url"
19+
20+
response=$(curl -s -o /dev/null -w "%{http_code} %{url_effective}" -I -L -m 10 "$url" 2>&1)
21+
status_code=$(echo "$response" | awk '{print $1}')
22+
23+
echo "$status_code | $url" >> "$OUTPUT_FILE"
24+
done < "$INPUT_FILE"
25+
26+
echo "Report generated: $OUTPUT_FILE"

intro/changelog.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Listed below are all the changes to the SeaTable API. Each date corresponds to a
5353
5454
## Version 5.0 (15.07.2024)
5555

56-
[View API Documentation for v5.0](https://api.seatable.io/v5.0)
56+
The SeaTable API Reference for version 5.0 is no longer accessible here. However, you can find it on [Github](https://github.com/seatable/openapi/tree/v5.0).
5757

5858
We recommend using the new `/api-gateway/` endpoints. These endpoints are faster because they check if the base has remained unchanged since the last request, allowing for quicker responses.
5959

@@ -98,24 +98,24 @@ The SeaTable API Reference for version 4.3 is no longer accessible here. However
9898
>
9999
> **Base Operations**
100100
>
101-
> - [Create Row Links in Big Data](/reference/post_dtable-db-api-v1-base-base-uuid-links) <span class="APIMethod APIMethod_fixedWidth APIMethod_post">post</span> `/dtable-db/api/v1/base/{base_uuid}/links/`
102-
> - [Delete Row Links in Big Data](/reference/post_dtable-db-api-v1-base-base-uuid-links) <span class="APIMethod APIMethod_fixedWidth APIMethod_delete">delete</span> `/dtable-db/api/v1/base/{base_uuid}/links/`
101+
> - [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/`
102+
> - [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/`
103103
>
104104
> **Account Operations - System Admin**
105105
>
106-
> - [Update Team User](/reference/put_api-v2-1-admin-organizations-org-id-users-user-id) <span class="APIMethod APIMethod_fixedWidth APIMethod_put">put</span> `/api/v2.1/admin/organizations/{org_id}/users/{user_id}/`
106+
> - [Update Team User](/reference/updateteamuser) <span class="APIMethod APIMethod_fixedWidth APIMethod_put">put</span> `/api/v2.1/admin/organizations/{org_id}/users/{user_id}/`
107107
>
108108
> **Account Operations - Team Admin**
109109
>
110-
> - [List Team Logins](/reference/get_api-v2-1-org-org-id-admin-login-logs) <span class="APIMethod APIMethod_fixedWidth APIMethod_get">get</span> `/api/v2.1/org/{org_id}/admin/login-logs/`
111-
> - [List User Logins](/reference/get_api-v2-1-org-org-id-admin-login-logs-user-id) <span class="APIMethod APIMethod_fixedWidth APIMethod_get">get</span> `/api/v2.1/org/{org_id}/admin/login-logs/{user_id}`
112-
> - [Get SAML Config](/reference/get_api-v2-1-org-org-id-admin-saml-config) <span class="APIMethod APIMethod_fixedWidth APIMethod_get">get</span> `/api/v2.1/org/{org_id}/admin/saml-config/`
113-
> - [Update SAML Config](/reference/put_api-v2-1-org-org-id-admin-saml-config) <span class="APIMethod APIMethod_fixedWidth APIMethod_put">put</span> `/api/v2.1/org/{org_id}/admin/saml-config/`
114-
> - [Verify SAML Domain](/reference/put_api-v2-1-org-org-id-admin-verify-domain) <span class="APIMethod APIMethod_fixedWidth APIMethod_put">put</span> `/api/v2.1/org/{org_id}/admin/verify-domain/`
110+
> - [List Team Logins](/reference/listteamlogins) <span class="APIMethod APIMethod_fixedWidth APIMethod_get">get</span> `/api/v2.1/org/{org_id}/admin/login-logs/`
111+
> - [List User Logins](/reference/listuserlogins) <span class="APIMethod APIMethod_fixedWidth APIMethod_get">get</span> `/api/v2.1/org/{org_id}/admin/login-logs/{user_id}`
112+
> - [Get SAML Config](/reference/getsamlconfig) <span class="APIMethod APIMethod_fixedWidth APIMethod_get">get</span> `/api/v2.1/org/{org_id}/admin/saml-config/`
113+
> - [Update SAML Config](/reference/updatesamlconfig) <span class="APIMethod APIMethod_fixedWidth APIMethod_put">put</span> `/api/v2.1/org/{org_id}/admin/saml-config/`
114+
> - [Verify SAML Domain](/reference/verifysamldomain) <span class="APIMethod APIMethod_fixedWidth APIMethod_put">put</span> `/api/v2.1/org/{org_id}/admin/verify-domain/`
115115
>
116116
> **Account Operations - User**
117117
>
118-
> - [Search User](/reference/get_api2-search-user) <span class="APIMethod APIMethod_fixedWidth APIMethod_get">get</span> `/api2/search-user/?q={search_query}`
118+
> - [Search User](/reference/searchuser-1) <span class="APIMethod APIMethod_fixedWidth APIMethod_get">get</span> `/api2/search-user/?q={search_query}`
119119
120120
> 👍 Other changes
121121
>
@@ -198,7 +198,7 @@ The SeaTable API Reference for version 3.5 is no longer available.
198198

199199
> 🚧 Breaking changes
200200
>
201-
> - Import from CSV `POST dtable-server/api/v1/dtables/{base_uuid}/import-csv/` was replaced with this [new call](/reference/import-base-from-xlsx-or-csv)
202-
> - Append from CSV `POST dtable-server/api/v1/dtables/{base_uuid}/append-csv/` was replaced with this [new call](/reference/import-base-from-xlsx-or-csv)
201+
> - Import from CSV `POST dtable-server/api/v1/dtables/{base_uuid}/import-csv/` was replaced with this [new call](/reference/importbasefromfile)
202+
> - Append from CSV `POST dtable-server/api/v1/dtables/{base_uuid}/append-csv/` was replaced with this [new call](/reference/appendtotablefromfile)
203203
> - Create Row Comment `POST dtable-server/api/v1/dtables/{base_uuid}/comments/` was removed
204204
> - Update Row Comment `PUT dtable-server/api/v1/dtables/{base_uuid}/comments/` was removed

intro/limits.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,5 @@ Besides the rate limits, there are size limits for how many rows you can manipul
8282
| [Insert, Update or Delete Rows (with SQL)](https://api.seatable.io/reference/querysql)<br/>`POST /api-gateway/api/v2/dtables/{...}/sql/` | unlimited |
8383
| [List rows](https://api.seatable.io/reference/listrows)<br/>`GET /api-gateway/api/v2/dtables/{...}/rows/` | 1.000 |
8484
| [Append rows](https://api.seatable.io/reference/appendrows)<br/>`POST /api-gateway/api/v2/dtables/{...}/rows/` | 1.000 |
85-
| [Update rows](https://api.seatable.io/reference/updaterows)<br/>`PUT /api-gateway/api/v2/dtables/{...}/rows/` | 1.000 |
86-
| [Delete rows](https://api.seatable.io/reference/deleterows)<br/>`DELETE /api-gateway/api/v2/dtables/{base_uuid}/rows/` | 10.000 |
85+
| [Update rows](https://api.seatable.io/reference/updaterow)<br/>`PUT /api-gateway/api/v2/dtables/{...}/rows/` | 1.000 |
86+
| [Delete rows](https://api.seatable.io/reference/deleterow)<br/>`DELETE /api-gateway/api/v2/dtables/{base_uuid}/rows/` | 10.000 |

system_admin_account_operations.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ components:
399399
description: >-
400400
Update their role. For details about roles, refer to
401401
[SeaTable Roles and
402-
Permissions](https://manual.seatable.io/config/enterprise/roles_permissions/).
402+
Permissions](https://admin.seatable.io/configuration/roles-and-permissions/).
403403
login_id:
404404
type: string
405405
description: >-
@@ -4060,7 +4060,7 @@ paths:
40604060
have a higher priority over the settings in the config files.
40614061
However, in the `dtable_web_settings` you'll find more setting options.
40624062
For details, visit the [SeaTable Admin
4063-
Manual](https://manual.seatable.io/config/dtable_web_settings/#user-management-options).
4063+
Manual](https://admin.seatable.io/configuration/dtable-web-settings/#user-management-options).
40644064
requestBody:
40654065
content:
40664066
application/json:

0 commit comments

Comments
 (0)