{
  "opencollection": "1.0.0",
  "info": {
    "name": "CAPEX Annual Consumption Contract Document API",
    "version": "1.0"
  },
  "items": [
    {
      "info": {
        "name": "Contract Document",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Contract Documents",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.alasco.de/capex/v1/contracts/:contract_id/documents/",
            "params": [
              {
                "name": "contract_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "filter[attribute.operation]",
                "value": "",
                "type": "query",
                "description": "\nYou can filter on certain attributes by specifying them as a GET parameter along\nwith an operation, e.g. `filter[name.exact]=abc`.\n\nCurrently supported operations are:\n* `less_than_equal`: Expects one value\n* `greater_than_equal`: Expects one value\n* `range`: Expects two values\n* `in`: Expects one or multiple values\n* `not_in`: Expects one or multiple values\n\nThe following attributes support filtering:\n\n| **Attribute** | `less_than_equal` | `greater_than_equal` | `range` | `in` | `not_in` |\n| :--- | :---: | :---: | :---: | :---: | :---: |\n| `document_type` |   |   |   | x | x |\n| `uploaded_at` | x | x | x |   |   |\n"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "X-API-KEY",
              "value": "{{X-API-KEY}}",
              "placement": "header"
            }
          },
          "docs": "Get Contract Documents"
        },
        {
          "info": {
            "name": "Create Contract Document",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.alasco.de/capex/v1/contracts/:contract_id/documents/",
            "params": [
              {
                "name": "contract_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "multipart-form",
              "data": []
            },
            "auth": {
              "type": "apikey",
              "key": "X-API-KEY",
              "value": "{{X-API-KEY}}",
              "placement": "header"
            }
          },
          "docs": "Create Contract Document"
        },
        {
          "info": {
            "name": "Get Contract Document",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.alasco.de/capex/v1/contracts/:contract_id/documents/:document_id/",
            "params": [
              {
                "name": "document_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "contract_id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "X-API-KEY",
              "value": "{{X-API-KEY}}",
              "placement": "header"
            }
          },
          "docs": "Get Contract Document"
        },
        {
          "info": {
            "name": "Download Contract Document",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.alasco.de/capex/v1/contracts/:contract_id/documents/:document_id/download/",
            "params": [
              {
                "name": "contract_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "document_id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "X-API-KEY",
              "value": "{{X-API-KEY}}",
              "placement": "header"
            }
          },
          "docs": "Download Contract Document"
        }
      ]
    }
  ],
  "bundled": true
}