{
  "opencollection": "1.0.0",
  "info": {
    "name": "CMiC Construction ERP Cost Tracking API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "https://login.microsoftonline.com/{tenantId}/oauth2/v2.0/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Cost Tracking",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List cost codes",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.cmic.ca/rest/jc-rest-api/v1/JCcostCode",
            "params": [
              {
                "name": "jobId",
                "value": "",
                "type": "query",
                "description": "Filter cost codes for a specific job"
              },
              {
                "name": "costType",
                "value": "",
                "type": "query",
                "description": "Filter by cost type"
              }
            ]
          },
          "docs": "Returns cost codes for jobs, enabling detailed cost tracking by category."
        }
      ]
    }
  ],
  "bundled": true
}