FInally, I have some relatively sensible pagination. /notes returns last 10 days by default, single days can be specified with ?day=YYYY-MM-DD or ?day=YYYY-DDD

updated: