{
  "openapi": "3.0.1",
  "info": {
    "title": "StorageAPI",
    "version": "v1"
  },
  "paths": {
    "/v1/Application/GetApplicationCredentialMaps": {
      "get": {
        "tags": [
          "Application"
        ],
        "parameters": [
          {
            "name": "key",
            "in": "query",
            "style": "form",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/v1/Application/GetApplicationCredentialById": {
      "get": {
        "tags": [
          "Application"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "style": "form",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/v1/Document/GetDocumentUrls": {
      "post": {
        "tags": [
          "Document"
        ],
        "parameters": [
          {
            "name": "apiKey",
            "in": "header",
            "style": "simple",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileInfoRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/FileInfoRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/FileInfoRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/v1/FileUpload/DownloadZip": {
      "post": {
        "tags": [
          "FileUpload"
        ],
        "parameters": [
          {
            "name": "apiKey",
            "in": "header",
            "style": "simple",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileInfoRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/FileInfoRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/FileInfoRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/v1/FileUpload/DownloadZipAsBase64": {
      "post": {
        "tags": [
          "FileUpload"
        ],
        "parameters": [
          {
            "name": "apiKey",
            "in": "header",
            "style": "simple",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileInfoRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/FileInfoRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/FileInfoRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/v1/FileUpload/RemoveObject": {
      "post": {
        "tags": [
          "FileUpload"
        ],
        "parameters": [
          {
            "name": "fileName",
            "in": "query",
            "style": "form",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "apiKey",
            "in": "header",
            "style": "simple",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/v1/FileUpload/RemoveObjectByDocumentUrl": {
      "post": {
        "tags": [
          "FileUpload"
        ],
        "parameters": [
          {
            "name": "documentUrl",
            "in": "query",
            "style": "form",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "apiKey",
            "in": "header",
            "style": "simple",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/v1/FileUpload/PermanentlyDeleteObjectByDocumentUrl": {
      "post": {
        "tags": [
          "FileUpload"
        ],
        "parameters": [
          {
            "name": "documentUrl",
            "in": "query",
            "style": "form",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "apiKey",
            "in": "header",
            "style": "simple",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/v1/FileUpload/RemoveObjects": {
      "post": {
        "tags": [
          "FileUpload"
        ],
        "parameters": [
          {
            "name": "apiKey",
            "in": "header",
            "style": "simple",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileRemoveWithPrefixRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/FileRemoveWithPrefixRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/FileRemoveWithPrefixRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/v1/FileUpload/UploadZipFileBase64": {
      "post": {
        "tags": [
          "FileUpload"
        ],
        "parameters": [
          {
            "name": "apiKey",
            "in": "header",
            "style": "simple",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileUploadDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/FileUploadDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/FileUploadDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/v1/FileUpload/UploadFileBase64": {
      "post": {
        "tags": [
          "FileUpload"
        ],
        "parameters": [
          {
            "name": "apiKey",
            "in": "header",
            "style": "simple",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileUploadDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/FileUploadDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/FileUploadDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/v1/FileUpload/UploadFilesBase64": {
      "post": {
        "tags": [
          "FileUpload"
        ],
        "parameters": [
          {
            "name": "apiKey",
            "in": "header",
            "style": "simple",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/FileUploadDto"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/FileUploadDto"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/FileUploadDto"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/v1/FileUpload/GetStreamByObjectKey/{objectKey}": {
      "get": {
        "tags": [
          "FileUpload"
        ],
        "parameters": [
          {
            "name": "objectKey",
            "in": "path",
            "required": true,
            "style": "simple",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/v1/FileUpload/GetStreamByObjectKeyOnprem/{objectKey}": {
      "get": {
        "tags": [
          "FileUpload"
        ],
        "parameters": [
          {
            "name": "objectKey",
            "in": "path",
            "required": true,
            "style": "simple",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "FileInfoRequestDto": {
        "required": [
          "date",
          "trackingCode"
        ],
        "type": "object",
        "properties": {
          "trackingCode": {
            "minLength": 1,
            "type": "string"
          },
          "date": {
            "type": "string",
            "format": "date-time"
          },
          "subFolder": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FileRemoveWithPrefixRequestDto": {
        "required": [
          "date",
          "subFolder",
          "trackingCode"
        ],
        "type": "object",
        "properties": {
          "trackingCode": {
            "minLength": 1,
            "type": "string"
          },
          "date": {
            "type": "string",
            "format": "date-time"
          },
          "subFolder": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "FileUploadDto": {
        "required": [
          "date",
          "fileContent",
          "fileName",
          "originalName",
          "trackingCode"
        ],
        "type": "object",
        "properties": {
          "fileContent": {
            "minLength": 1,
            "type": "string"
          },
          "fileName": {
            "maxLength": 255,
            "minLength": 3,
            "type": "string"
          },
          "originalName": {
            "maxLength": 255,
            "minLength": 3,
            "type": "string"
          },
          "trackingCode": {
            "minLength": 1,
            "type": "string"
          },
          "date": {
            "type": "string",
            "format": "date-time"
          },
          "subFolder": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    }
  }
}