Commit graph spaceapid/handlers/root.go
Author SHA1 Message Date
2cc08483a2
fix(handlers): values where omited when false and set go min version to 1.25
switching from v1 to v2 of encoding/json in the root handler to not omit
false values in the spaceapi response.
this increases the min go version to 1.25.
2026-10-05 14:10:36 +02:00
a53a5c3517 feat: SpaceAPI v15 support
Delete types/v14.go, replace with v15.go.

Rename internal types to not include message version.
I don't currently see the need to support multiple message
versions that have incompatible layouts.
v15 is backwards compatible with v14, so the config example now
specifies both.

Rename the "response" field in the config file to "static" as
dynamic/static makes more sense from the user's perspective.
(Internally it's still SpaceapidConfig.{Dynamic,Response}
to align with type names and usage.)
2026-07-25 23:04:20 +02:00
8c1adae040
Rename module 2024-05-26 20:52:15 +02:00
bc299d4c70
Set charset=utf-8 in Content-Type header 2024-01-16 01:24:19 +01:00
2495ce5808
Remove superfluous WriteHeader calls 2024-01-15 22:20:53 +01:00
b2f62c7bb0
First implementation of new config format
- Functionally equivalent to old version at present
- Temperature and Humidity sensors not handled yet
- Moved HTTP handlers around
2024-01-13 23:27:24 +01:00