Repository navigation
v0.2.1
Fixes a day's request count and closes the last unvalidated request path.
UsageDay.hitswas always empty, sohits_on(date)reported no requests however many an account had made. A day in the monthly breakdown carries its total only underapis, with no top-levelhits, and the client read the field that is never there. The count is now summed fromapis, falls back to a top-levelhitsif one is present, and isNonewhen neither is — never a misleading zero.usage_month(month)interpolated the month into the request path without validation, so a caller could reach an arbitrary path on the API host with their own key attached. OnlyYYYY-MMis accepted now, matching how a location is already handled.
The test payloads for these endpoints are copies of real API responses; the hand-written ones they replace are what hid the first bug.