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

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

Ключ

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

Описание : Список всех возможных статусов персон

Метод:  GET

Ресурс: person/status

Параметры:

  • start — с какой позиции начать отдавать элементы, по-умолчанию 0
  • limit — сколько элементов отдавать, по-умолчанию 100, не может быть больше 1000

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

 

JSON схема отдачи списка статусов 

 

{
    "type": "object",
    "properties": {
        "data": {
            "description": "Массив статусов",
            "type": "array",
            "items": {
                "description": "Статус персоны",
                "type": "object",
                "required": [
                    "IDENTITY_STATUS_ID",
                    "CREATE_DATE",
                    "CHANGE_DATE",
                    "ASSIGNMENT_DATE",
                    "DISPLAY_NAME",
                    "COLOR",
                    "EDITABLE"
                ],
                "properties": {
                    "IDENTITY_STATUS_ID": {
                        "description": "Уникальный идентификатор статуса",
                        "type": "string"
                    },
                    "CREATE_DATE": {
                        "description": "Дата создания статуса",
                        "type": "string"
                    },
                    "CHANGE_DATE": {
                        "description": "Дата изменения статуса",
                        "type": "string"
                    },
                    "ASSIGNMENT_DATE": {
                        "description": "Дата проставления статуса персоне",
                        "type": "string"
                    },
                    "DISPLAY_NAME": {
                        "description": "Название статуса",
                        "type": "string"
                    },
                    "COLOR": {
                        "description": "Цвет статуса (например #ff0000)",
                        "type": "string"
                    },
                    "EDITABLE": {
                        "description": "Признак, что статус не является системным",
                        "type": "integer"
                    }
                }
            }
        },
        "meta": {
            "description": "Дополнительные данные",
            "type": "object",
            "required": [
                "totalCount",
                "start",
                "limit"
            ],
            "properties": {
                "totalCount": {
                    "description": "Общее количество",
                    "type": "integer"
                },
                "start": {
                    "description": "С какой позиции началось отдаваться",
                    "type": "integer"
                },
                "limit": {
                    "description": "Сколько всего отдалось",
                    "type": "integer"
                }
            }
        }
    }
}

 

Пример:

Запрос

 

GET /xapi/person/status?start=0&limit=10
Sv translation
languageen

Description: The list of all possible person statuses

Method:  GET

Resource: person/status

Parameters:

  • start — a start position for returning items, the default value is 0
  • limit — how many items to return (the default value is 100, cannot be more than 1000

Response: The list of statuses described with the following JSON Schema:

 

JSON schema for returning the list of statuses  

 

{
     "$schema" :  "http://json-schema.org/draft-04/schema#" ,
     "type" :  "object" ,
     "properties" : {
         "data" : {
             "description" :  "Array of statuses" ,
             "type" :  "array" ,
             "items" : {
                 "description" :  "Person status" ,
                 "type" :  "object" ,
                 "required" : [
                     "IDENTITY_STATUS_ID" ,
                     "CREATE_DATE" ,
                     "CHANGE_DATE" ,
                     "ASSIGNMENT_DATE" ,
                     "DISPLAY_NAME" ,
                     "COLOR" ,
                     "EDITABLE"
                 ],
                 "properties" : {
                     "IDENTITY_STATUS_ID" : {
                         "description" :  "Status unique identifier" ,
                         "type" :  "string"
                     },
                     "CREATE_DATE" : {
                         "description" :  "Status creation date" ,
                         "type" :  "string"
                     },
                     "CHANGE_DATE" : {
                         "description" :  "Status modification date" ,
                         "type" :  "string"
                     },
                     "ASSIGNMENT_DATE" : {
                         "description" :  "The date when the status was assigned to the person" ,
                         "type" :  "string"
                     },
                     "DISPLAY_NAME" : {
                         "description" :  "Status name" ,
                         "type" :  "string"
                     },
                     "COLOR" : {
                         "description" :  "Status color (e.g. #ff0000)" ,
                         "type" :  "string"
                     },
                     "EDITABLE" : {
                         "description" :  "Indicator that the status is not system" ,
                         "type" :  "integer"
                     }
                 }
             }
         },
         "meta" : {
             "description" :  "Additional data" ,
             "type" :  "object" ,
             "required" : [
                 "totalCount" ,
                 "start" ,
                 "limit"
             ],
             "properties" : {
                 "totalCount" : {
                     "description" :  "Total number" ,
                     "type" :  "integer"
                 },
                 "start" : {
                     "description" :  "A position from which returning started" ,
                     "type" :  "integer"
                 },
                 "limit" : {
                     "description" :  "Total number of returned items" ,
                     "type" :  "integer"
                 }
             }
         }
     }
}

 

Example:

Query

 

GET /xapi/person/status?start= 0 &limit= 10