mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2025-10-27 08:49:27 +00:00
Allow adding spots. Convert timestamps in the API to UNIX seconds. #2
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user