{
  "info": {
    "name": "PES2B Desktop Worker",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "http://127.0.0.1:3100"
    },
    {
      "key": "apiKey",
      "value": ""
    }
  ],
  "item": [
    {
      "name": "Health",
      "request": {
        "method": "GET",
        "url": "{{baseUrl}}/health"
      }
    },
    {
      "name": "Commands",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "X-WORKER-API-KEY",
            "value": "{{apiKey}}"
          }
        ],
        "url": "{{baseUrl}}/api/v1/commands"
      }
    },
    {
      "name": "Heartbeat",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "X-WORKER-API-KEY",
            "value": "{{apiKey}}"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"requestId\": \"teste-001\",\n  \"command\": \"heartbeat-session\",\n  \"input\": {\n    \"module\": \"escrita-fiscal\",\n    \"sessionPolicy\": \"REUTILIZAR\"\n  }\n}"
        },
        "url": "{{baseUrl}}/api/v1/execute"
      }
    }
  ]
}