Refactor of caching & data storage part 16 #118

This commit is contained in:
Ian Renton
2026-08-03 22:15:29 +01:00
parent 27d73c27d6
commit 459d999f57
14 changed files with 93 additions and 55 deletions
+10 -2
View File
@@ -325,7 +325,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/CallLookup'
$ref: '#/components/schemas/CallsignData'
'422':
description: Validation error e.g. callsign missing or format incorrect
content:
@@ -1791,6 +1791,10 @@ components:
The last time at which this provider received data, UTC seconds since UNIX epoch. If this
is zero, the provider has never updated.
example: 1759579508
lookup_count:
type: number
description: The number of callsign lookups performed using this provider since the server was started.
example: 1234
SpotList:
type: array
@@ -1962,12 +1966,16 @@ components:
on this server.
example: true
CallLookup:
CallsignData:
type: object
properties:
call:
type: string
description: Callsign, as provided to the API
example: DL/M0TRT/P
home_call:
type: string
description: The "home" call, without prefixes or suffixes
example: M0TRT
name:
type: string
+1
View File
@@ -65,6 +65,7 @@ function loadStatus() {
<div class="col"><strong>${p["name"]}</strong></div>
<div class="col">Status: ${p["status"]}</div>
<div class="col">Last updated: ${(p["enabled"] && p["last_updated"] > 0) ? moment.unix(p["last_updated"]).utc().fromNow() : "N/A"}</div>
<div class="col">Lookups: ${(p["enabled"] && p["lookup_count"] > 0) ? p["lookup_count"] : "N/A"}</div>
</div>`);
});
});