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

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

Ключ

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

Описание : Список ОЗ, отсортированный по имени.

Метод:  GET

Ресурс: event/protectedDocument

Параметры:

  • start - с какой позиции начать отдавать ОЗ, по-умолчанию 0
  • limit - сколько ОЗ отдавать, по-умолчанию 100, не может быть больше 1000
  • with[] — список дополнительных сущностей, которые должны быть добавлены к ОЗ:
    • pd2pc — связь объекта защиты к каталогу объекта защиты

Ответ: Список ОЗ, описанный следующей JSON

...

схемой отдачи списка ОЗ:

 

{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "properties": {
        "data": {
            "type": "array",
            "description": "Массив ОЗ",
            "items": {
                "type": "object",
                "description": "ОЗ",
                "properties": {
                    "DOCUMENT_ID": {
                        "type": "string",
                        "description": "Идентификатор"
                    },
                    "DISPLAY_NAME": {
                        "type": "string",
                        "description": "Имя"
                    },
                    "CREATE_DATE": {
                        "type": "string",
                        "description": "Дата создания"
                    },
                    "IS_DELETED": {
                        "type": "integer",
                        "description": "Удален ли из активной конфигурации",
                        "enum": [
                            0,
                            1
                        ]
                    },
                    "pd2pc": {
                        "description": "Массив связи с каталогами ОЗ",
                        "type": "array",
                        "items": {
                            "description": "Связь с каталогом ОЗ",
                            "type": "object",
                            "required": [
                                "CATALOG_ID",
                                "DOCUMENT_ID"
                            ],
                            "properties": {
                                "CATALOG_ID": {
                                    "description": "Уникальный идентификатор каталога ОЗ",
                                    "type": "string"
                                },
                                "DOCUMENT_ID": {
                                    "description": "Уникальный идентификатор ОЗ",
                                    "type": "string"
                                }
                            }
                        }
                    }
                },
                "required": [
                    "DOCUMENT_ID",
                    "DISPLAY_NAME",
                    "CREATE_DATE",
                    "IS_DELETED"
                ]
            }
        },
        "meta": {
            "description": "Дополнительные данные",
            "type": "object",
            "properties": {
                "totalCount": {
                    "type": "integer",
                    "description": "Общее количество ОЗ"
                },
                "start": {
                    "type": "integer",
                    "description": "С какой позиции началось отдаваться"
                },
                "limit": {
                    "type": "integer",
                    "description": "Сколько всего отдалось"
                }
            },
            "required": [
                "totalCount",
                "start",
                "limit"
            ]
        }
    },
    "required": [
        "data",
        "meta"
    ]
}

 

Пример:

Запрос

 

GET /xapi/event/protectedDocument?start=0&limit=10
X-API-Version: 1
X-API-CompanyId: iw
X-API-ImporterName: dome
X-API-Auth-Token: brse99dugp1cdbr69axz

 

Ответ

 

{
    "data": [{
        "DOCUMENT_ID": "C78E821A67C7F34A1B1D63A4151CEF6300000000",
        "DISPLAY_NAME": "Грифованная информация",
        "CREATE_DATE": "2016-05-12 10:24:41.342554",
        "IS_DELETED": 0
    }],
    "meta": {
        "totalCount": 1,
        "start": 0,
        "limit": 10
    }
}
Sv translation
languageen

Description: The list of protected objects sorted by name.

Method:  GET

Resource: event/protectedDocument

Parameters:

  • start - a position from which to start returning protected objects, the default value is 0
  • limit - the number of protected objects to be returned; the default value is 100; cannot be more than 1000
  • with[] — the list of additional entities to be added to the protected object:
    • pd2pc — a link of the protected object with the catalog of protected objects

Response: The list of protected objects described with the following JSON Schema:

JSON schema of returning the list of protected objects:

 

{
     "$schema" :  "http://json-schema.org/draft-04/schema#" ,
     "type" :  "object" ,
     "properties" : {
         "data" : {
             "type" :  "array" ,
             "description" :  "Array of protected objects" ,
             "items" : {
                 "type" :  "object" ,
                 "description" :  "Protected object" ,
                 "properties" : {
                     "DOCUMENT_ID" : {
                         "type" :  "string" ,
                         "description" :  "Identifier"
                     },
                     "DISPLAY_NAME" : {
                         "type" :  "string" ,
                         "description" :  "Name"
                     },
                     "CREATE_DATE" : {
                         "type" :  "string" ,
                         "description" :  "Creation date"
                     },
                     "IS_DELETED" : {
                         "type" :  "integer" ,
                         "description" :  "Whether it is removed from the active configuration" ,
                         "enum" : [
                             0,
                             1
                         ]
                     },
                     "pd2pc" : {
                         "description" :  "Array of links to catalogs of protected objects" ,
                         "type" :  "array" ,
                         "items" : {
                             "description" :  "Link to the catalog of protected objects" ,
                             "type" :  "object" ,
                             "required" : [
                                 "CATALOG_ID" ,
                                 "DOCUMENT_ID"
                             ],
                             "properties" : {
                                 "CATALOG_ID" : {
                                     "description" :  "A unique identifier of the catalog of protected objects" ,
                                     "type" :  "string"
                                 },
                                 "DOCUMENT_ID" : {
                                     "description" :  "A unique identifier of the protected object" ,
                                     "type" :  "string"
                                 }
                             }
                         }
                     }
                 },
                 "required" : [
                     "DOCUMENT_ID" ,
                     "DISPLAY_NAME" ,
                     "CREATE_DATE" ,
                     "IS_DELETED"
                 ]
             }
         },
         "meta" : {
             "description" :  "Additional data" ,
             "type" :  "object" ,
             "properties" : {
                 "totalCount" : {
                     "type" :  "integer" ,
                     "description" :  "The total number of protected objects"
                 },
                 "start" : {
                     "type" :  "integer" ,
                     "description" :  "The position from which returning has started"
                 },
                 "limit" : {
                     "type" :  "integer" ,
                     "description" :  "The number of returned objects"
                 }
             },
             "required" : [
                 "totalCount" ,
                 "start" ,
                 "limit"
             ]
         }
     },
     "required" : [
         "data" ,
         "meta"
     ]
}

 

Example:

Query

 

GET /xapi/event/protectedDocument?start= 0 &limit= 10
X-API-Version:  1
X-API-CompanyId: iw
X-API-ImporterName: dome
X-API-Auth-Token: brse99dugp1cdbr69axz

 

Response

 

{
     "data" : [{
         "DOCUMENT_ID" :  "C78E821A67C7F34A1B1D63A4151CEF6300000000" ,
         "DISPLAY_NAME" :  "Security labels" ,
         "CREATE_DATE" :  "2016-05-12 10:24:41.342554" ,
         "IS_DELETED" : 0
     }],
     "meta" : {
         "totalCount" : 1,
         "start" : 0,
         "limit" : 10
     }
}