{
  "swagger": "2.0",
  "info": {
    "title": "ownCloud Infinite Scale thumbnails",
    "version": "1.0.0",
    "contact": {
      "name": "ownCloud GmbH",
      "url": "https://github.com/owncloud/ocis",
      "email": "support@owncloud.com"
    },
    "license": {
      "name": "Apache-2.0",
      "url": "https://github.com/owncloud/ocis/blob/master/LICENSE"
    }
  },
  "tags": [
    {
      "name": "ThumbnailService"
    }
  ],
  "schemes": [
    "http",
    "https"
  ],
  "consumes": [
    "application/json"
  ],
  "produces": [
    "application/json"
  ],
  "paths": {},
  "definitions": {
    "protobufAny": {
      "type": "object",
      "properties": {
        "@type": {
          "type": "string"
        }
      },
      "additionalProperties": {}
    },
    "rpcStatus": {
      "type": "object",
      "properties": {
        "code": {
          "type": "integer",
          "format": "int32"
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/protobufAny"
          }
        }
      }
    },
    "v0CS3Source": {
      "type": "object",
      "properties": {
        "path": {
          "type": "string"
        },
        "authorization": {
          "type": "string"
        }
      }
    },
    "v0GetThumbnailResponse": {
      "type": "object",
      "properties": {
        "dataEndpoint": {
          "type": "string",
          "description": "The endpoint where the thumbnail can be downloaded."
        },
        "transferToken": {
          "type": "string",
          "description": "The transfer token to be able to download the thumbnail."
        },
        "mimetype": {
          "type": "string",
          "title": "The mimetype of the thumbnail"
        }
      },
      "title": "The service response"
    },
    "v0ThumbnailType": {
      "type": "string",
      "enum": [
        "PNG",
        "JPG",
        "GIF"
      ],
      "default": "PNG",
      "description": "The file types to which the thumbnail can be encoded to."
    },
    "v0WebdavSource": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string",
          "description": "REQUIRED."
        },
        "isPublicLink": {
          "type": "boolean",
          "description": "REQUIRED."
        },
        "webdavAuthorization": {
          "type": "string",
          "description": "OPTIONAL."
        },
        "revaAuthorization": {
          "type": "string",
          "description": "OPTIONAL."
        },
        "publicLinkToken": {
          "type": "string",
          "description": "OPTIONAL."
        }
      }
    }
  },
  "externalDocs": {
    "description": "Developer Manual",
    "url": "https://owncloud.dev/extensions/thumbnails/"
  }
}
