File tree Expand file tree Collapse file tree 5 files changed +84
-1
lines changed
Expand file tree Collapse file tree 5 files changed +84
-1
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ description: >-
99
1010
1111{% hint style="info" %}
12- These docs are up-to-date for version: ` v0.11.2 `
12+ These docs are up-to-date for version: ` v0.11.9 `
1313{% endhint %}
1414
1515### Introduction
Original file line number Diff line number Diff line change 22
33* [ Introduction] ( README.md )
44* [ Frequently Asked Questions] ( faqs.md )
5+ * [ Data Dictionary] ( data-dictionary.md )
56
67## 🚀 Getting Started
78
1819 * [ Mail] ( settings/notifications/mail.md )
1920 * [ Telegram] ( settings/notifications/telegram.md )
2021
22+ ## 🖥 API
23+
24+ * [ Getting Started] ( api/getting-started.md )
25+ * [ Latest Result] ( api/latest-result.md )
26+
2127## 🤹 Contributing
2228
2329* [ Setup Your Environment] ( contributing/setup-your-environment.md )
Original file line number Diff line number Diff line change 1+ # Getting Started
2+
3+ ### Postman Collection
4+
5+ A [ Postman] ( https://www.postman.com/ ) collection can be found in the [ repository] ( https://github.com/alexjustesen/speedtest-tracker/blob/main/%F0%9F%90%87%20Speedtest%20Tracker.postman\_ collection.json ) to test all API endpoints.
Original file line number Diff line number Diff line change 1+ # Latest Result
2+
3+ ### Legacy Endpoints
4+
5+ #### Authentication
6+
7+ No authentication required.
8+
9+ {% swagger method="get" path="" baseUrl="/api/speedtest/latest" summary="Get the latest speedtest result" expanded="false" %}
10+ {% swagger-description %}
11+ Provides backwards compatibility for
12+
13+ [ Homepage] ( https://github.com/benphelps/homepage )
14+
15+ and
16+
17+ [ Organizr] ( https://github.com/causefx/Organizr )
18+
19+ home lab dashboards.
20+ {% endswagger-description %}
21+
22+ {% swagger-response status="200: OK" description="" %}
23+ ``` javascript
24+ {
25+ " message" : " ok" ,
26+ " data" : {
27+ " id" : 1 ,
28+ " ping" : 11.111 ,
29+ " download" : 694.20 ,
30+ " upload" : 420.69 ,
31+ " server_id" : 12345 ,
32+ " server_host" : " host.of.server.com" ,
33+ " server_name" : " Name of Server" ,
34+ " url" : " https://www.speedtest.net/result/c/slug-to-results" ,
35+ " scheduled" : false ,
36+ " failed" : true ,
37+ " created_at" : " 2023-03-10T13:17:46.000000Z" ,
38+ " updated_at" : " 2023-03-10T13:17:46.000000Z"
39+ }
40+ }
41+ ```
42+ {% endswagger-response %}
43+
44+ {% swagger-response status="404: Not Found" description="" %}
45+ ``` javascript
46+ {
47+ " message" : " No results found."
48+ }
49+ ```
50+ {% endswagger-response %}
51+ {% endswagger %}
Original file line number Diff line number Diff line change 1+ # Data Dictionary
2+
3+ ### Tables
4+
5+ #### Results
6+
7+ | Field | Type | Description |
8+ | ------------- | -------------------- | -------------------------------------------- |
9+ | ` id ` | primary key | |
10+ | ` ping ` | double | As milliseconds |
11+ | ` download ` | unsigned big integer | As bytes |
12+ | ` upload ` | unsigned big integer | As bytes |
13+ | ` server_id ` | integer | ID of the speedtest server |
14+ | ` server_host ` | string | Host/URL of the speedtest server |
15+ | ` server_name ` | string | Name of the speedtest server |
16+ | ` url ` | string | URL to the result on speedtest.net |
17+ | ` comments ` | text | User added comments |
18+ | ` scheduled ` | boolean | Was the result scheduled? |
19+ | ` successful ` | boolean | Was the result successful? |
20+ | ` data ` | json | The raw data received from the Speedtest CLI |
21+ | ` created_at ` | timestamp | |
You can’t perform that action at this time.
0 commit comments