{
  "openapi": "3.1.0",
  "info": {
    "title": "sheffhallamisoc public API",
    "description": "Public HTTP surfaces for Sheffield Hallam Islamic Society (sheffhallamisoc.com). Currently exposes a prayer-times proxy used by the society website.",
    "version": "1.0.0",
    "contact": {
      "name": "Sheffield Hallam Islamic Society",
      "email": "sheffhallamisoc@gmail.com",
      "url": "https://sheffhallamisoc.com/contact"
    }
  },
  "servers": [{ "url": "https://sheffhallamisoc.com" }],
  "paths": {
    "/api/prayer-times": {
      "get": {
        "operationId": "getPrayerTimes",
        "summary": "Get adhan times for a Sheffield mosque slug",
        "description": "Proxies Sheffield Masjids prayer times for a validated mosque slug. Used by Hallam ISOC prayer pages.",
        "parameters": [
          {
            "name": "mosque",
            "in": "query",
            "required": true,
            "schema": { "type": "string", "example": "masjid-risalah" },
            "description": "Mosque slug accepted by the Sheffield Masjids upstream API."
          }
        ],
        "responses": {
          "200": {
            "description": "Prayer times payload from upstream",
            "content": {
              "application/json": {
                "schema": { "type": "object", "additionalProperties": true }
              }
            }
          },
          "400": { "description": "Invalid or missing mosque slug" },
          "502": { "description": "Upstream Sheffield Masjids error" }
        }
      }
    }
  }
}
