mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-03-03 14:57:22 -05:00
126 lines
2.6 KiB
JSON
126 lines
2.6 KiB
JSON
{
|
|
"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": {
|
|
"GetThumbnailRequestThumbnailType": {
|
|
"type": "string",
|
|
"enum": [
|
|
"PNG",
|
|
"JPG"
|
|
],
|
|
"default": "PNG",
|
|
"description": "The file types to which the thumbnail can get encoded to."
|
|
},
|
|
"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": {
|
|
"thumbnail": {
|
|
"type": "string",
|
|
"format": "byte",
|
|
"title": "The thumbnail as a binary"
|
|
},
|
|
"mimetype": {
|
|
"type": "string",
|
|
"title": "The mimetype of the thumbnail"
|
|
}
|
|
},
|
|
"title": "The service response"
|
|
},
|
|
"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/"
|
|
}
|
|
}
|