{
  "info": {
    "_postman_id": "dca69b6b-86d0-4cb6-b84d-fba17aa1f711",
    "name": "TotemClock Time Tools API",
    "description": "Free, keyless examples for decimal-hour conversion and worked-hours calculations. Full documentation: https://totemclock.com/developers/",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [{ "key": "baseUrl", "value": "https://totemclock.com" }],
  "item": [
    {
      "name": "Convert HH:MM to decimal hours",
      "request": {
        "method": "GET",
        "header": [],
        "url": { "raw": "{{baseUrl}}/api/tools/decimal-hours?time=07%3A30", "host": ["{{baseUrl}}"], "path": ["api", "tools", "decimal-hours"], "query": [{ "key": "time", "value": "07:30" }] },
        "description": "Returns minutes, decimal hours and a formatted duration."
      }
    },
    {
      "name": "Convert decimal hours to HH:MM",
      "request": {
        "method": "GET",
        "header": [],
        "url": { "raw": "{{baseUrl}}/api/tools/decimal-hours?decimal=7.5", "host": ["{{baseUrl}}"], "path": ["api", "tools", "decimal-hours"], "query": [{ "key": "decimal", "value": "7.5" }] },
        "description": "Converts decimal hours to total minutes and HH:MM."
      }
    },
    {
      "name": "Calculate a daytime shift",
      "request": {
        "method": "GET",
        "header": [],
        "url": { "raw": "{{baseUrl}}/api/tools/worked-hours?start=08%3A30&end=17%3A30&breakMinutes=60", "host": ["{{baseUrl}}"], "path": ["api", "tools", "worked-hours"], "query": [{ "key": "start", "value": "08:30" }, { "key": "end", "value": "17:30" }, { "key": "breakMinutes", "value": "60" }] },
        "description": "Calculates net worked time after an unpaid break."
      }
    },
    {
      "name": "Calculate an overnight shift",
      "request": {
        "method": "GET",
        "header": [],
        "url": { "raw": "{{baseUrl}}/api/tools/worked-hours?start=22%3A00&end=06%3A30&breakMinutes=30", "host": ["{{baseUrl}}"], "path": ["api", "tools", "worked-hours"], "query": [{ "key": "start", "value": "22:00" }, { "key": "end", "value": "06:30" }, { "key": "breakMinutes", "value": "30" }] },
        "description": "Recognizes the end time as the following day."
      }
    }
  ]
}

