mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-08-06 02:21:42 +00:00
Refactor of caching & data storage part 16 #118
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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>`);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user