{
  "opencollection": "1.0.0",
  "info": {
    "name": "CMiC Construction ERP Cost Tracking Documents 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": "Documents",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List project documents",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.cmic.ca/rest/dm-rest-api/v1/DMdocument",
            "params": [
              {
                "name": "projectId",
                "value": "",
                "type": "query"
              },
              {
                "name": "documentType",
                "value": "",
                "type": "query"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Returns project documents including RFIs, submittals, change orders, and drawings."
        }
      ]
    }
  ],
  "bundled": true
}