mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2025-10-27 08:49:27 +00:00
Add OpenAPI definition #1
This commit is contained in:
@@ -57,8 +57,9 @@ class Spot:
|
||||
band_contrast_color: str = None
|
||||
# Time of the spot
|
||||
time: datetime = None
|
||||
# Time that this software received the spot. This is used with the "since" 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.
|
||||
# Time that this software received the spot. 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.
|
||||
received_time: datetime = datetime.now(pytz.UTC),
|
||||
# Comment left by the spotter, if any
|
||||
comment: str = None
|
||||
@@ -72,7 +73,7 @@ class Spot:
|
||||
activation_score: int = None
|
||||
# Maidenhead grid locator for the spot. This could be from a geographical reference e.g. POTA, or just from the country
|
||||
grid: str = None
|
||||
# Latitude & longitude, in degrees. This could be from a geographical reference e.g. POTA, or just from the country
|
||||
# Latitude & longitude, in degrees. This could be from a geographical reference e.g. POTA, or from a QRZ lookup
|
||||
latitude: float = None
|
||||
longitude: float = None
|
||||
# QRT state. Some APIs return spots marked as QRT. Otherwise we can check the comments.
|
||||
|
||||
Reference in New Issue
Block a user