sonda/internal/api/openapi
Repository files (latest commit first)
Filename Latest commit message Latest commit date
tgiachi 32068f7cf6 fix(listening): report a deleted account first and document one event per play
- fix: a listen from a deleted account is answered 401 before the track or the
  duration is looked at, so a client that signs out on 401 does it whatever
  else is wrong with the request (UserExists on the store)
- docs: one event per play, sent when the play ends or is abandoned, with one
  idempotency key per play. An event cannot be upgraded afterwards: a key that
  was already used is ignored even if the type or duration differ, and a new
  key would count the same play twice. The README no longer says to report at
  20 seconds, which led straight into that trap, and no longer hard-codes the
  minimum
- test: the SQL filter at exactly the threshold and just under it, the order of
  events within the same second, the order of checks for a deleted account
2026-11-11 15:02:28 +01:00
..
openapi.go feat(api): OpenAPI spec and an offline Swagger UI 2026-11-11 14:35:16 +01:00
openapi.yaml fix(listening): report a deleted account first and document one event per play 2026-11-11 15:02:28 +01:00