Mandolin (1.0.1)

Download OpenAPI specification:Download

U+039b: contact@defensive-lab.agency URL: https://pts-project.org/ License: GPL-3.0-or-later

Micro-service to analyze and convert files

analyzers

Analyze With Tika

Request Body schema: multipart/form-data
required
file
required
string <binary> (File)

Responses

Response samples

Content type
application/json
{
  • "success": false,
  • "content": "string",
  • "processors": {
    }
}

Analyze With Yara

Request Body schema: multipart/form-data
required
file
required
string <binary> (File)
rules
required
string (Rules)

Responses

Response samples

Content type
application/json
{
  • "success": false,
  • "content": "string",
  • "processors": {
    }
}

converters

Generate Thumbnail

query Parameters
width
integer (Width) > 0
Default: 300
height
integer (Height) > 0
Default: 200
Color (string) or Color (null) (Color)
strategy
string (ThumbnailStrategy)
Default: "pad"
Enum: "pad" "fit" "cover" "contain"
Request Body schema: multipart/form-data
required
file
required
string <binary> (File)

Responses

Response samples

Content type
application/json
{
  • "detail": [
    ]
}

Root

Responses

Response samples

Content type
application/json
null