Дерево страниц

Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.
Комментарий: Published by Scroll Versions from space TMAG and version 7.13
Sv translation
languageru

Метод: POST

Ресурс: etalonDocument/{fingerprint_id}/update

 ПоляПоля:

Название поля
Описание

DISPLAY_NAME

Имя эталонного документа (если не указано, то берётся берется из поля FILE)
FILE_PATH

Путь к эталонному документу в источнике, например:

  • smb://example.com/top_secret/etalon.docx
,
  • ;
  • \\example\test\text.rtf
, ,
  • ;
  • oracle://example.com:1521/database/table/row
, 
  • ;
  • https://examlpe.com/same/html/document.
NOTE

Описание эталонного документа

BIN_VALUE_THRESHOLDПорог цитируемости бинарных данных (по умолчанию берется из первого указанного каталога)
TEXT_VALUE_THRESHOLDПорог цитируемости текстовых данных (по умолчанию берется из первого указанного каталога)
CATEGORY_IDСписок GUID-ов категорий, разделенных запятой, например: "E77D893219A24EEAB3D049804FD86751,C743F88121B8449DAF37291474830679,A7AF8EFCF4D54E9393A9B3D750E5ABBB"
FILEСам файл (Передаётся Передается сам файл, а не путь к нему. Сервер не сможет подключиться к вашему компьютеру и забрать его сам. Поэтому весь файл передаётся передается в запросе)
COMPILE_TYPE

Тип цифрового отпечатка:

  • TEXT — Извлекать только текст
  • ALL — Извлекать и компилировать всё что возможно

Передавать нужно только те поля, которые нужно изменить. Остальные поля нужно опускать.

Блок кода
languagetext
titleОтвет:
collapsetrue
{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "definitions": {},
    "id": "http://infowatch.com/tm/etalonDocument",
    "type": "object",
    "properties": {
        "FINGERPRINT_ID": {
            "examples": [
                "139C7026ED48BE13459669024786F7517E5687AE"
            ],
            "title": "Идентификатор эталонного документа",
            "type": "string"
        },
        "DISPLAY_NAME": {
            "title": "Название",
            "type": "string"
        },
        "FILE_PATH": {
            "title": "Полное имя файла",
            "type": "string"
        },
        "FILE_SIZE": {
            "title": "Размер файла в байтах",
            "type": "integer"
        },
        "MIME": {
            "title": "Mime-type файла",
            "type": "string"
        },
        "BIN_VALUE_THRESHOLD": {
            "title": "Порог цитируемости бинарных данных",
            "type": "integer"
        },
        "TEXT_VALUE_THRESHOLD": {
            "title": "Порог цитируемости текстовых данных",
            "type": "integer"
        },
        "NOTE": {
            "title": "Описание",
            "type": [
                "null",
                "string"
            ]
        },
        "OWNER": {
            "title": "ID токена",
            "type": "integer"
        },
        "STATUS": {
            "examples": [
                "new",
                "compiled",
                "compiling",
                "sending",
                "sent",
                "saving",
                "ready",
                "fatal_error",
                "duplicate",
                "error"
            ],
            "title": "Статус обработки",
            "type": "string"
        },
        "CREATE_DATE": {
            "examples": [
                "2017-07-04 10:45:45.000000"
            ],
            "title": "Дата создания",
            "type": "string"
        },
        "CHANGE_DATE": {
            "examples": [
                "2017-07-04 10:45:45.000000"
            ],
            "title": "Дата изменения",
            "type": "string"
        },
        "categories": {
            "type": "array",
            "title": "Массив категорий",
            "items": {
                "type": "object",
                "properties": {
                    "CATEGORY_ID": {
                        "examples": [
                            "AC3DF073B60107890A4C704A10577FE700000000"
                        ],
                        "title": "GUID категории",
                        "type": "string"
                    },
                    "DISPLAY_NAME": {
                        "title": "Название",
                        "type": "string"
                    },
                    "DIR_PATH (возможно изменение в названии)": {
                        "title": "Полное имя директории",
                        "type": "string"
                    },
                    "FP_BIN_VALUE_THRESHOLD": {
                        "title": "Порог цитируемости бинарных данных",
                        "type": "integer"
                    },
                    "FP_TEXT_VALUE_THRESHOLD": {
                        "title": "Порог цитируемости текстовых данных",
                        "type": "integer"
                    },
                    "NOTE": {
                        "title": "Описание",
                        "type": [
                            "null",
                            "string"
                        ]
                    },
                    "OWNER": {
                        "title": "ID токена",
                        "type": "integer"
                    },
                    "CREATE_DATE": {
                        "examples": [
                            "2017-07-04 10:45:45.000000"
                        ],
                        "title": "Дата создания",
                        "type": "string"
                    },
                    "CHANGE_DATE": {
                        "examples": [
                            "2017-07-04 10:45:45.000000"
                        ],
                        "title": "Дата изменения",
                        "type": "string"
                    }
                }
            }
        }
    }
}
Sv translation
languageen

Method: POST

Resource: etalonDocument/{fingerprint_id}/update

Request body:

Fields:

 


Field name
Description

DISPLAY_NAME

Sample document name (if not specified, to be taken from FILE field)
FILE_PATH

Path to sample document in source, e.g.:

  • smb://example.com/top_secret/etalon.docx
,
  • ;
  • \\example\test\text.rtf
,
,
  • ;
  • oracle://example.com:1521/database/table/row
, 
  • ;
  • https://examlpe.com/same/html/document.
NOTE

Sample document description

.

BIN_VALUE_THRESHOLDBinary data quote index (by default, to be taken from the first catalogue specified)
.
TEXT_VALUE_THRESHOLDText data quote index (by default, to be taken from the first catalogue specified)
.
CATEGORY_IDList of GUID categories, separated by comma, e.g: "E77D893219A24EEAB3D049804FD86751,C743F88121B8449DAF37291474830679,A7AF8EFCF4D54E9393A9B3D750E5ABBB"
FILEFile itself (The file is sent, not the path to a file. Server cannot connect to your PC and takes the file. Thus, the file is sent via request)
.
COMPILE_TYPE

Type of digital fingerprint:

  • TEXT — to extract text only;
  • ALL — to extract and compile all types of data

The fields required to be changed should be sent. The rest fields should be put down.

Блок кода
languagetext
titleResponse:
 
collapse
 
true
{

    "$schema": "http://json-schema.org/draft-04/schema#",

    "definitions": {},

    "id": "http://infowatch.com/tm/etalonDocument",

    "type": "object",

    "properties": {

        "FINGERPRINT_ID": {

            "examples": [

                "139C7026ED48BE13459669024786F7517E5687AE"

            ],

            "title": "Sample document identifier",

            "type": "string"

        },

        "DISPLAY_NAME": {

            "title": "Title",

            "type": "string"

        },

        "FILE_PATH": {

            "title": "File full name",

            "type": "string"

        },

        "FILE_SIZE": {

            "title": "Size in bytes",

            "type": "integer"

        },

        "MIME": {

            "title": "File mime-type",

            "type": "string"

        },

        "BIN_VALUE_THRESHOLD": {

            "title": "Binary data quote index",

            "type": "integer"

        },

        "TEXT_VALUE_THRESHOLD": {

            "title": "Text data quote index",

            "type": "integer"

        },

        "NOTE": {

            "title": "Description",

            "type": [

                "null",

                "string"

            ]

        },

        "OWNER": {

            "title": "Token ID",

            "type": "integer"

        },

        "STATUS": {

            "examples": [

                "new",

                "compiled",

                "compiling",

                "sending",

                "sent",

                "saving",

                "ready",

                "fatal_error",

                "duplicate",

                "error"

            ],

            "title": "Status of processing",

            "type": "string"

        },

        "CREATE_DATE": {

            "examples": [

                "2017-07-04 10:45:45.000000"

            ],

            "title": "Date of creation",

            "type": "string"

        },

        "CHANGE_DATE": {

            "examples": [

                "2017-07-04 10:45:45.000000"

            ],

            "title": "Date of change",

            "type": "string"

        },

        "categories": {

            "type": "array",

            "title": "Categories array",

            "items": {

                "type": "object",

                "properties": {

                    "CATEGORY_ID": {

                        "examples": [

                            "AC3DF073B60107890A4C704A10577FE700000000"

                        ],

                        "title": "GUID categories",

                        "type": "string"

                    },

                    "DISPLAY_NAME": {

                        "title": "Title",

                        "type": "string"

                    },

                    "DIR_PATH (title can be changed)": {

                        "title": "Directory full name",

                        "type": "string"

                    },

                    "FP_BIN_VALUE_THRESHOLD": {

                        "title": "Binary data quote index",

                        "type": "integer"

                    },

                    "FP_TEXT_VALUE_THRESHOLD": {

                        "title": "Text data quote index",

                        "type": "integer"

                    },

                    "NOTE": {

                        "title": "Description",

                        "type": [

                            "null",

                            "string"

                        ]

                    },

                    "OWNER": {

                        "title": "Token ID",

                        "type": "integer"

                    },

                    "CREATE_DATE": {

                        "examples": [

                            "2017-07-04 10:45:45.000000"

                        ],

                        "title": "Date of creation",

                        "type": "string"

                    },

                    "CHANGE_DATE": {

                        "examples": [

                            "2017-07-04 10:45:45.000000"

                        ],

                        "title": "Date of change",

                        "type": "string"

                    }

                }

            }

        }

    }

}