{
  "description": "Trinity Community Recreation Centre Activity Schedule API",
  "endpoints": {
    "/": "This help message",
    "/programs": "List available activities, ages, and days",
    "/preview": "Preview events in JSON format with filtering",
    "/calendar": "Get iCal feed (supports filtering)"
  },
  "filters": {
    "programType": "Filter by program type (e.g., ?programType=swim or ?programType=sports)",
    "title": "Filter by activity title (e.g., ?title=Lane%20Swim or ?title=Table%20Tennis)",
    "program": "Filter by program (e.g., ?program=Swim%20-%20Drop-In)",
    "age": "Filter by age group (e.g., ?age=18%20years%20and%20over)",
    "day": "Filter by days (e.g., ?day=monday%2Cwednesday)",
    "startDate": "Filter by start date (e.g., ?startDate=2025-02-24)",
    "endDate": "Filter by end date (e.g., ?endDate=2025-03-03)",
    "force": "Force fetch fresh data (e.g., ?force=true)"
  },
  "notes": [
    "Use URL encoding for special characters",
    "Use /preview to test filters before downloading calendar",
    "Replace spaces with %20",
    "Replace commas with %2C",
    "Dates use ISO format (YYYY-MM-DD)",
    "Cache is automatically refreshed daily and when older than 24 hours"
  ],
  "examples": {
    "laneSwim": "/calendar?title=Lane%20Swim&day=monday%2Cwednesday",
    "tableTennis": "/calendar?title=Table%20Tennis&day=monday%2Cwednesday",
    "programType": "/calendar?programType=sports",
    "dateRange": "/calendar?startDate=2025-02-24&endDate=2025-03-03",
    "combined": "/calendar?title=Lane%20Swim&age=18%20years%20and%20over&day=monday%2Cwednesday&startDate=2025-02-24",
    "forceFetch": "/programs?force=true"
  },
  "lastUpdated": "2026-04-15T00:00:40.728Z",
  "cacheAge": "751 minutes"
}