{
  "opencollection": "1.0.0",
  "info": {
    "name": "Light Authorization v1 - Attachments API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "Authorization",
      "value": "{{Authorization}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "v1 - Attachments",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List attachments",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/attachments",
            "params": [
              {
                "name": "resourceId",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Returns a list of attachments associated with a specific resource"
        },
        {
          "info": {
            "name": "Create attachment",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/v1/attachments",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new attachment record"
        },
        {
          "info": {
            "name": "Generate attachment upload URL",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/v1/attachments/upload-url",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Generates a secure upload URL for attachment files"
        },
        {
          "info": {
            "name": "Delete attachment",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "{{baseUrl}}/v1/attachments/:attachmentId",
            "params": [
              {
                "name": "attachmentId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Deletes a specific attachment and its associated file"
        },
        {
          "info": {
            "name": "Get attachment document",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/attachments/:attachmentId/document",
            "params": [
              {
                "name": "attachmentId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Returns the document file for a specific attachment"
        },
        {
          "info": {
            "name": "Get attachment options",
            "type": "http"
          },
          "http": {
            "method": "OPTIONS",
            "url": "{{baseUrl}}/v1/attachments/:attachmentId/document",
            "params": [
              {
                "name": "attachmentId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Handles CORS preflight requests for attachment document access"
        }
      ]
    }
  ],
  "bundled": true
}