Allow adding spots. Convert timestamps in the API to UNIX seconds. #2

This commit is contained in:
Ian Renton
2025-10-04 13:28:22 +01:00
parent 0419aab83f
commit 5f16abf709
16 changed files with 51 additions and 37 deletions

View File

@@ -312,7 +312,7 @@ paths:
operationId: spot
parameters:
- name: spot
description: The spot data to post
description: The spot data to post. The structure must contain at least "time" and "dx_call" to be accepted.
required: true
schema:
type:
@@ -487,13 +487,13 @@ components:
- Unknown
example: 40m
time:
type: string
description: Time of the spot, ISO 8601 format
example: 2025-09-28T19:12:41Z
type: number
description: Time of the spot, UTC seconds since UNIX epoch
example: 1759579508
received_time:
type: string
description: Time that this software received the spot, ISO 8601 format. This is used with the "since_received" call to our API to receive all data that is new to us, even if by a quirk of the API it might be older than the list time the client polled the API.
example: 2025-09-28T19:12:41Z
type: number
description: Time that this software received the spot, UTC seconds since UNIX epoch. This is used with the "since_received" call to our API to receive all data that is new to us, even if by a quirk of the API it might be older than the list time the client polled the API.
example: 1759579508
comment:
type: string
description: Comment left by the spotter, if any