Add OpenAPI definition #1

This commit is contained in:
Ian Renton
2025-09-28 21:41:36 +01:00
parent 4681b2b74c
commit b03650eb80
3 changed files with 450 additions and 3 deletions

View File

@@ -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.