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

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

Ключ

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

Описание: Статистика по группам

Метод: GET

Ресурс: group /stat

Параметры:

  • filter — список фильтрации:

    • change_date[from] — от даты последнего изменения в формате UNIX-timestamp (можно использовать отдельно от change_date[to]);
    • change_date[to] — до даты последнего изменения в формате UNIX-timestamp (можно использовать отдельно от change_date[from]).

Ответ:

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

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

    "description": "Статистика",

    "type": "object",

    "properties": {

        "data": {

            "description": "Не используется",

            "type": "array",

            "items": {}

        },

        "meta": {

            "description": "Статистика",

            "type": "object",

            "properties": {

                "CHANGE_DATE": {

                    "description": "Дата изменения",

                    "type": "object",

                    "properties": {

                        "from": {

                            "description": "Самая ранняя дата изменения",

                            "type": "string"

                        },

                        "to": {

                            "description": "Самая поздняя дата изменения",

                            "type": "string"

                        }

                    }

                },

                "totalCount": {

                    "description": "Общее количество элементов",

                    "type": "integer"

                }

            }

        }

    }
}

Пример:

GET

}
Блок кода
languagetext
titleПример
collapsetrue
GET /xapi/group/stat?filter[change_date][to]=1494951762&filter[change_date][from]=1494951000
Блок кода
Ответ 
languagetext
titleОтвет
collapsetrue
{

  "data": [],

  "meta": {

    "CHANGE_DATE": {

      "from": "2017-03-24 10:40:03",

      "to": "2017-05-24 12:10:22"

    },

    "totalCount": 539693

  }

}
Sv translation
languageen

Description: Statistics on groups

Method: GET

Resource: group /stat

Parameters:

  • filter — the filter list:

    • change_date[from] — since the date of the last change in UNIX-timestamp format (can be used separately from change_date[to]);
    • change_date[to] — up to the date of the last change in UNIX-timestamp format (can be used separately from change_date[from]).

Response:

Блок кода
languagetext
titleJSON returning schema
collapsetrue
{

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

     "description" :  "Statistics" ,

     "type" :  "object" ,

     "properties" : {

         "data" : {

             "description" :  "Not used" ,

             "type" :  "array" ,

             "items" : {}

         },

         "meta" : {

             "description" :  "Statistics" ,

             "type" :  "object" ,

             "properties" : {

                 "CHANGE_DATE" : {

                     "description" :  "Modification date" ,

                     "type" :  "object" ,

                     "properties" : {

                         "from" : {

                             "description" :  "The first modification date" ,

                             "type" :  "string"

                         },

                         "to" : {

                             "description" :  "The last modification date" ,

                             "type" :  "string"

                         }

                     }

                 },

                 "totalCount" : {

                     "description" :  "Total number of items" ,

                     "type" :  "integer"

                 }

             }

         }

     }
}

Example:

GET

}
Блок кода
languagetext
titleExample
collapsetrue
GET /xapi/group/stat?filter[change_date][to]= 1494951762 &filter[change_date][from]= 1494951000
Блок кода
languagetext
Response 
titleResponse
collapsetrue
{

   "data" : [],

   "meta" : {

     "CHANGE_DATE" : {

       "from" :  "2017-03-24 10:40:03" ,

       "to" :  "2017-05-24 12:10:22"

     },

     "totalCount" : 539693

   }

}