Skip to content

Commit f985072

Browse files
TizianoTandinux
andauthored
Removed from docs file 8090 port references (#143)
* chore(docs): restructure security docs and enhance API Keys documentation Separated Users and Roles & Privileges into dedicated pages for better organization. Completely rewrote API Keys documentation with detailed instructions for creating, managing, and using API keys. Cleaned up navigation structure and removed duplicate content. * docs: update OffSync page for v1.5.0 UI redesign - Remove outdated video imports (old UI recordings) - Add Enabling/Disabling OffSync section with dialog flow - Rewrite Configuration tab: Database ID + SQL snippet + Push Notifications - Add Metrics tab section (active devices, upload/download bytes) - Update intro to reflect 4-tab layout * docs: add enable/disable OffSync video to offsync page * docs: remove obsolete section "Advanced: RLS and SQLite Sync" * docs: enhance OffSync documentation for Database ID and Push Notifications configuration * docs: comment out video player for OffSync enable/disable functionality * docs: comment out video references in API Key management section * docs: update OffSync configuration details and enhance tab descriptions * Remove :8090 port from Weblite URLs Update documentation examples to remove the explicit :8090 port from Weblite endpoints. Modified files under sqlite-cloud (create-database.mdx, multi-code-example.mdx, platform/weblite.mdx, write-data.mdx) so examples use https://<your-project-id>.sqlite.cloud/... instead of https://<your-project-id>.sqlite.cloud:8090/..., keeping examples consistent with the default service URL. --------- Co-authored-by: Andrea Donetti <andinux@gmail.com>
1 parent e669179 commit f985072

4 files changed

Lines changed: 23 additions & 23 deletions

File tree

sqlite-cloud/create-database.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ To upload a local SQLite database via weblite, make a POST request to the `/v2/w
2222

2323
```bash
2424
curl -X 'POST' \
25-
'https://<your-project-id>.sqlite.cloud:8090/v2/weblite/<database-name>.sqlite' \
25+
'https://<your-project-id>.sqlite.cloud/v2/weblite/<database-name>.sqlite' \
2626
-H 'accept: application/json' \
2727
-H 'Authorization: Bearer sqlitecloud://<your-project-id>.sqlite.cloud:8860?apikey=<your-api-key>' \
2828
-d ''
@@ -52,7 +52,7 @@ The default encoding is set to UTF-8, and the default page size is 4096KB.
5252
To create a new database or upload an existing database via [Weblite](/docs/weblite), our REST API, you can make a request with the following parameters:
5353
```bash
5454
curl -X 'POST' \
55-
'https://<your-project-id>.sqlite.cloud:8090/v2/weblite/<database-name>.sqlite' \
55+
'https://<your-project-id>.sqlite.cloud/v2/weblite/<database-name>.sqlite' \
5656
-H 'accept: application/json' \
5757
-H 'Authorization: Bearer sqlitecloud://<your-project-id>.sqlite.cloud:8860?apikey=<your-api-key>' \
5858
-d ''

sqlite-cloud/multi-code-example.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const WebliteSourceCode = `<script>
2525
async function searchData(event) {
2626
const query = document.getElementById('query').value;
2727
const response = await fetch(
28-
"https://abcdef123k.sqlite.cloud:8090/v2/functions/search-js?query=" + query
28+
"https://abcdef123k.sqlite.cloud/v2/functions/search-js?query=" + query
2929
)
3030
const data = await response.json();
3131
}

sqlite-cloud/platform/weblite.mdx

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Example request:
3232

3333
```bash
3434
curl -X 'GET' \
35-
'https://<your-project-id>.sqlite.cloud:8090/v2/health' \
35+
'https://<your-project-id>.sqlite.cloud/v2/health' \
3636
-H 'accept: application/json' \
3737
-H 'Authorization: Bearer sqlitecloud://<your-project-id>.sqlite.cloud:8860?apikey=<your-api-key>'
3838
```
@@ -64,7 +64,7 @@ Example request:
6464

6565
```bash
6666
curl -X 'GET' \
67-
'https://<your-project-id>.sqlite.cloud:8090/v2/info' \
67+
'https://<your-project-id>.sqlite.cloud/v2/info' \
6868
-H 'accept: application/json' \
6969
-H 'Authorization: Bearer sqlitecloud://<your-project-id>.sqlite.cloud:8860?apikey=<your-api-key>'
7070
```
@@ -129,7 +129,7 @@ Example request:
129129

130130
```bash
131131
curl -X 'GET' \
132-
'https://<your-project-id>.sqlite.cloud:8090/v2/stats' \
132+
'https://<your-project-id>.sqlite.cloud/v2/stats' \
133133
-H 'accept: application/json' \
134134
-H 'Authorization: Bearer sqlitecloud://<your-project-id>.sqlite.cloud:8860?apikey=<your-api-key>'
135135
```
@@ -173,7 +173,7 @@ sql_query="SELECT * FROM artists LIMIT 3"
173173
encoded_query=$(printf '%s' "$sql_query" | jq -sRr @uri)
174174

175175
curl -X 'GET' \
176-
"https://<your-project-id>.sqlite.cloud:8090/v2/weblite/sql?sql=$<encoded_query>&database=<database-name>" \
176+
"https://<your-project-id>.sqlite.cloud/v2/weblite/sql?sql=$<encoded_query>&database=<database-name>" \
177177
-H 'accept: application/json' \
178178
-H 'Authorization: Bearer sqlitecloud://<your-project-id>.sqlite.cloud:8860?apikey=<your-api-key>'
179179
```
@@ -230,7 +230,7 @@ Example request:
230230
sql="SELECT * FROM albums LIMIT 5"
231231

232232
curl -X 'POST' \
233-
'https://<your-project-id>.sqlite.cloud:8090/v2/weblite/sql \
233+
'https://<your-project-id>.sqlite.cloud/v2/weblite/sql \
234234
-H 'Content-Type: application/json' \
235235
-H 'Authorization: Bearer sqlitecloud://<your-project-id>.sqlite.cloud:8860?apikey=<your-api-key>'
236236
-d "{\"sql\":\"$sql\", \"database\": \"chinook.sqlite\"}"
@@ -302,7 +302,7 @@ Example request:
302302
303303
```bash
304304
curl -X 'GET' \
305-
'https://<your-project-id>.sqlite.cloud:8090/v2/weblite/databases' \
305+
'https://<your-project-id>.sqlite.cloud/v2/weblite/databases' \
306306
-H 'accept: application/json' \
307307
-H 'Authorization: Bearer sqlitecloud://<your-project-id>.sqlite.cloud:8860?apikey=<your-api-key>'
308308
```
@@ -343,7 +343,7 @@ Example request:
343343
344344
```bash
345345
curl -X 'GET' \
346-
'https://<your-project-id>.sqlite.cloud:8090/v2/weblite/<database-name>/tables' \
346+
'https://<your-project-id>.sqlite.cloud/v2/weblite/<database-name>/tables' \
347347
-H 'accept: application/json' \
348348
-H 'Authorization: Bearer sqlitecloud://<your-project-id>.sqlite.cloud:8860?apikey=<your-api-key>'
349349
```
@@ -376,7 +376,7 @@ Example request:
376376
377377
```bash
378378
curl -X 'GET' \
379-
'https://<your-project-id>.sqlite.cloud:8090/v2/weblite/<database-name>/<table-name>/columns' \
379+
'https://<your-project-id>.sqlite.cloud/v2/weblite/<database-name>/<table-name>/columns' \
380380
-H 'accept: application/json' \
381381
-H 'Authorization: Bearer sqlitecloud://<your-project-id>.sqlite.cloud:8860?apikey=<your-api-key>'
382382
```
@@ -425,7 +425,7 @@ Example request:
425425
426426
```bash
427427
curl -X 'GET' -o chinook.sqlite \
428-
'https://<your-project-id>.sqlite.cloud:8090/v2/weblite/<database-name>' \
428+
'https://<your-project-id>.sqlite.cloud/v2/weblite/<database-name>' \
429429
-H 'accept: application/json' \
430430
-H 'Authorization: Bearer sqlitecloud://<your-project-id>.sqlite.cloud:8860?apikey=<your-api-key>'
431431
```
@@ -446,7 +446,7 @@ Example request:
446446
447447
```bash
448448
curl -X 'POST' \
449-
'https://<your-project-id>.sqlite.cloud:8090/v2/weblite/<new-database-name>' \
449+
'https://<your-project-id>.sqlite.cloud/v2/weblite/<new-database-name>' \
450450
-H 'Content-Type: application/octet-stream' \
451451
-H 'Authorization: Bearer sqlitecloud://<your-project-id>.sqlite.cloud:8860?apikey=<your-api-key>'
452452
--data-binary @<path-to-file>
@@ -485,7 +485,7 @@ Example request:
485485
486486
```bash
487487
curl -X 'PATCH' \
488-
'https://<your-project-id>.sqlite.cloud:8090/v2/weblite/<database-name>' \
488+
'https://<your-project-id>.sqlite.cloud/v2/weblite/<database-name>' \
489489
-H 'Content-Type: application/octet-stream' \
490490
-H 'Authorization: Bearer sqlitecloud://<your-project-id>.sqlite.cloud:8860?apikey=<your-api-key>'
491491
--data-binary @<path-to-file>
@@ -524,7 +524,7 @@ Example request:
524524
525525
```bash
526526
curl -X 'DELETE' \
527-
'https://<your-project-id>.sqlite.cloud:8090/v2/weblite/<database-name>' \
527+
'https://<your-project-id>.sqlite.cloud/v2/weblite/<database-name>' \
528528
-H 'accept: application/json' \
529529
-H 'Authorization: Bearer sqlitecloud://<your-project-id>.sqlite.cloud:8860?apikey=<your-api-key>'
530530
```
@@ -548,7 +548,7 @@ Example request:
548548
549549
```bash
550550
curl -X 'GET' \
551-
'https://<your-project-id>.sqlite.cloud:8090/v2/weblite/<database-name>/<table-name>' \
551+
'https://<your-project-id>.sqlite.cloud/v2/weblite/<database-name>/<table-name>' \
552552
-H 'accept: application/json' \
553553
-H 'Authorization: Bearer sqlitecloud://<your-project-id>.sqlite.cloud:8860?apikey=<your-api-key>'
554554
```
@@ -583,7 +583,7 @@ Example request:
583583
584584
```bash
585585
curl -X 'POST' \
586-
'https://<your-project-id>.sqlite.cloud:8090/v2/weblite/<database-name>/<table-name>' \
586+
'https://<your-project-id>.sqlite.cloud/v2/weblite/<database-name>/<table-name>' \
587587
-H 'Content-Type: application/json' \
588588
-H 'Authorization: Bearer sqlitecloud://<your-project-id>.sqlite.cloud:8860?apikey=<your-api-key>'
589589
-d '[{"Name": "Il Divo"}, {"Name": "Natalia LaFourcade"}]'
@@ -608,7 +608,7 @@ Example request:
608608
609609
```bash
610610
curl -X 'DELETE' \
611-
'https://<your-project-id>.sqlite.cloud:8090/v2/weblite/<database-name>/<table-name>' \
611+
'https://<your-project-id>.sqlite.cloud/v2/weblite/<database-name>/<table-name>' \
612612
-H 'accept: application/json' \
613613
-H 'Authorization: Bearer sqlitecloud://<your-project-id>.sqlite.cloud:8860?apikey=<your-api-key>'
614614
```
@@ -632,7 +632,7 @@ Example request:
632632
633633
```bash
634634
curl -X 'GET' \
635-
'https://<your-project-id>.sqlite.cloud:8090/v2/weblite/<database-name>/<table-name>/<row-id>' \
635+
'https://<your-project-id>.sqlite.cloud/v2/weblite/<database-name>/<table-name>/<row-id>' \
636636
-H 'accept: application/json' \
637637
-H 'Authorization: Bearer sqlitecloud://<your-project-id>.sqlite.cloud:8860?apikey=<your-api-key>'
638638
```
@@ -659,7 +659,7 @@ Example request:
659659
660660
```bash
661661
curl -X 'POST' \
662-
'https://<your-project-id>.sqlite.cloud:8090/v2/weblite/<database-name>/<table-name>/<row-id>' \
662+
'https://<your-project-id>.sqlite.cloud/v2/weblite/<database-name>/<table-name>/<row-id>' \
663663
-H 'Content-Type: application/json' \
664664
-H 'Authorization: Bearer sqlitecloud://<your-project-id>.sqlite.cloud:8860?apikey=<your-api-key>'
665665
-d '{"Name": "Alessandro Safina"}'
@@ -692,7 +692,7 @@ Example request:
692692
693693
```bash
694694
curl -X 'PATCH' \
695-
'https://<your-project-id>.sqlite.cloud:8090/v2/weblite/<database-name>/<table-name>/<row-id>' \
695+
'https://<your-project-id>.sqlite.cloud/v2/weblite/<database-name>/<table-name>/<row-id>' \
696696
-H 'Content-Type: application/json' \
697697
-H 'Authorization: Bearer sqlitecloud://<your-project-id>.sqlite.cloud:8860?apikey=<your-api-key>'
698698
-d '{"title": "TEST"}'
@@ -725,7 +725,7 @@ Example request:
725725
726726
```bash
727727
curl -X 'DELETE' \
728-
'https://<your-project-id>.sqlite.cloud:8090/v2/weblite/<database-name>/<table-name>/<row-id>' \
728+
'https://<your-project-id>.sqlite.cloud/v2/weblite/<database-name>/<table-name>/<row-id>' \
729729
-H 'accept: application/json' \
730730
-H 'Authorization: Bearer sqlitecloud://<your-project-id>.sqlite.cloud:8860?apikey=<your-api-key>'
731731
```

sqlite-cloud/write-data.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ You can use the [Weblite API](/docs/weblite) to run SQL commands against your cl
3838

3939
```bash
4040
curl -X 'POST' \
41-
'https://<your-project-id>.sqlite.cloud:8090/v2/weblite/sql' \
41+
'https://<your-project-id>.sqlite.cloud/v2/weblite/sql' \
4242
-H 'accept: application/json' \
4343
-H 'Authorization: Bearer sqlitecloud://<your-project-id>.sqlite.cloud:8860?apikey=<your-api-key>' \
4444
-d '<your-sql-here>'

0 commit comments

Comments
 (0)