{
 "openapi": "3.1.0",
 "info": {
  "title": "Calcora Open Data API",
  "version": "1.0.0",
  "description": "Static JSON: unit conversion factors, ECB reference exchange rates, world time zones."
 },
 "servers": [
  {
   "url": "https://calcora.dev/api/v1"
  }
 ],
 "paths": {
  "/units.json": {
   "get": {
    "summary": "Unit catalogue with factors",
    "responses": {
     "200": {
      "description": "OK"
     }
    }
   }
  },
  "/conversions/{category}.json": {
   "get": {
    "summary": "All conversion relations in a category",
    "parameters": [
     {
      "name": "category",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "enum": [
        "length",
        "mass",
        "temperature",
        "volume",
        "area",
        "speed",
        "duration",
        "data",
        "energy",
        "pressure",
        "power",
        "fuel"
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK"
     }
    }
   }
  },
  "/rates/latest.json": {
   "get": {
    "summary": "Latest ECB reference rates (base EUR)",
    "responses": {
     "200": {
      "description": "OK"
     }
    }
   }
  },
  "/rates/history.json": {
   "get": {
    "summary": "Daily reference-rate history",
    "responses": {
     "200": {
      "description": "OK"
     }
    }
   }
  },
  "/timezones.json": {
   "get": {
    "summary": "World-clock cities and offsets",
    "responses": {
     "200": {
      "description": "OK"
     }
    }
   }
  }
 }
}