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

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

Ключ

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

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

Метод:   GET GET

Ресурс: person/status

Параметры:

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

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

Блок кода
languagetext
titleJSON схема отдачи списка статусов
 
collapsetrue
{

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

    "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"

                }

            }

        }

    }

}

Пример:

Блок кода
languagetext
titleЗапрос
collapsetrue
GET /xapi/person/status?start=0&limit=10
Sv translation
languageen

Description: The list of all possible person statuses

Method:   GET GET

Resource: person/status

Parameters:

  • start — a – a start position for returning items, the default value is 0;
  • limit — how – 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: 

Блок кода
languagetext
titleJSON schema for returning the list of statuses
  
collapse
 
true
{

     "$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:

Блок кода
languagetext
titleQuery
 
collapsetrue
GET /xapi/person/status?start= 0 &limit= 10