mirror of
https://github.com/JuLi0n21/thumbnailservice.git
synced 2026-06-05 02:36:28 +00:00
ammend
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 628 B |
@@ -0,0 +1,16 @@
|
||||
html {
|
||||
box-sizing: border-box;
|
||||
overflow: -moz-scrollbars-vertical;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
*,
|
||||
*:before,
|
||||
*:after {
|
||||
box-sizing: inherit;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
background: #fafafa;
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
<!-- HTML for static distribution bundle build -->
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Swagger UI</title>
|
||||
<link rel="stylesheet" type="text/css" href="./swagger-ui.css" />
|
||||
<link rel="stylesheet" type="text/css" href="index.css" />
|
||||
<link rel="icon" type="image/png" href="./favicon-32x32.png" sizes="32x32" />
|
||||
<link rel="icon" type="image/png" href="./favicon-16x16.png" sizes="16x16" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="swagger-ui"></div>
|
||||
<script src="./swagger-ui-bundle.js" charset="UTF-8"> </script>
|
||||
<script src="./swagger-ui-standalone-preset.js" charset="UTF-8"> </script>
|
||||
<script src="./swagger-initializer.js" charset="UTF-8"> </script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,15 @@
|
||||
window.onload = function() {
|
||||
window.ui = SwaggerUIBundle({
|
||||
url: "./thumbnail.swagger.json",
|
||||
dom_id: '#swagger-ui',
|
||||
deepLinking: true,
|
||||
presets: [
|
||||
SwaggerUIBundle.presets.apis,
|
||||
SwaggerUIStandalonePreset
|
||||
],
|
||||
plugins: [
|
||||
SwaggerUIBundle.plugins.DownloadUrl
|
||||
],
|
||||
layout: "StandaloneLayout"
|
||||
});
|
||||
};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,204 @@
|
||||
{
|
||||
"swagger": "2.0",
|
||||
"info": {
|
||||
"title": "thumbnail.proto",
|
||||
"version": "version not set"
|
||||
},
|
||||
"tags": [
|
||||
{
|
||||
"name": "ThumbnailService"
|
||||
}
|
||||
],
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"paths": {
|
||||
"/v1/ocr": {
|
||||
"post": {
|
||||
"operationId": "ThumbnailService_OcrFile",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/thumbnail_serviceOCRFileResponse"
|
||||
}
|
||||
},
|
||||
"default": {
|
||||
"description": "An unexpected error response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/rpcStatus"
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/thumbnail_serviceOCRFileRequest"
|
||||
}
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"ThumbnailService"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/v1/thumbnail": {
|
||||
"post": {
|
||||
"operationId": "ThumbnailService_GenerateThumbnail",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/thumbnail_serviceThumbnailResponse"
|
||||
}
|
||||
},
|
||||
"default": {
|
||||
"description": "An unexpected error response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/rpcStatus"
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/thumbnail_serviceThumbnailRequest"
|
||||
}
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"ThumbnailService"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"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": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/protobufAny"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"thumbnail_serviceFileType": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"FILE_TYPE_UNSPECIFIED",
|
||||
"IMAGE",
|
||||
"VIDEO",
|
||||
"PDF"
|
||||
],
|
||||
"default": "FILE_TYPE_UNSPECIFIED",
|
||||
"description": "- FILE_TYPE_UNSPECIFIED: Default value for unspecified file type\n - IMAGE: Image file\n - VIDEO: Video file\n - PDF: PDF file",
|
||||
"title": "Enum for the file type"
|
||||
},
|
||||
"thumbnail_serviceOCRFileRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"fileContent": {
|
||||
"type": "string",
|
||||
"format": "byte",
|
||||
"title": "file"
|
||||
},
|
||||
"fileType": {
|
||||
"$ref": "#/definitions/thumbnail_serviceFileType",
|
||||
"title": "file type for future adding of maybe other stuff?"
|
||||
},
|
||||
"cleanUp": {
|
||||
"type": "boolean",
|
||||
"title": "if whitespace should be normalized and cleaned from \"useless chars\""
|
||||
}
|
||||
},
|
||||
"title": "create a ocred version of a document"
|
||||
},
|
||||
"thumbnail_serviceOCRFileResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"message": {
|
||||
"type": "string",
|
||||
"title": "Status Message"
|
||||
},
|
||||
"ocrContent": {
|
||||
"type": "string",
|
||||
"format": "byte",
|
||||
"title": "data of the ocred file"
|
||||
},
|
||||
"textContent": {
|
||||
"type": "string",
|
||||
"title": "text of the file"
|
||||
}
|
||||
},
|
||||
"title": "Response message of ocred document"
|
||||
},
|
||||
"thumbnail_serviceThumbnailRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"fileContent": {
|
||||
"type": "string",
|
||||
"format": "byte",
|
||||
"title": "File content as bytes"
|
||||
},
|
||||
"fileType": {
|
||||
"$ref": "#/definitions/thumbnail_serviceFileType",
|
||||
"title": "File type (image, video, pdf)"
|
||||
},
|
||||
"maxWidth": {
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"title": "Optional max width for resizing (0 means no limit)"
|
||||
},
|
||||
"maxHeight": {
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"title": "Optional max height for resizing (0 means no limit)"
|
||||
}
|
||||
},
|
||||
"title": "Request message for generating thumbnails"
|
||||
},
|
||||
"thumbnail_serviceThumbnailResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"message": {
|
||||
"type": "string",
|
||||
"title": "Message indicating success or failure"
|
||||
},
|
||||
"thumbnailContent": {
|
||||
"type": "string",
|
||||
"format": "byte",
|
||||
"title": "Thumbnail content as bytes"
|
||||
}
|
||||
},
|
||||
"title": "Response message for the thumbnail generation"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user