Задача [API82]: Доработка API метода получения списка документов

Формулировка проблемы: для работы в режиме оффлайн в мобильном клиенте необходимо получать список работ по документу.

Связанные задачи: API27

Решение: необходимо доработать метод API rest/api/docflow/doc/documents, добавив следующий выходной параметр для каждого документа:

Входные параметры и тип запроса не меняются.

Пример возвращаемого массива:

[
{       "name": "document3",
        "content": "",
        "documentID": "fbcbfc7d-4597-4d83-94ad-6aff5d76f3b1",
        "number": "125-2221",
        "author": "Бобров С.Е.",
        "user": "Абдрешен Л.С.",
        "regUser": "Акбердиева А.А.",
        "resUsers": "",
        "to": "",
        "from": "",
        "correspondent": "",
        "correspondentOrg": "",
        "type": "DOCUMENT",
        "createDate": "2016-10-20 11:09:00",
        "regDate": "2016-10-23 16:05:00",
        "statusID": "IN_PROGRESS",
        "isExpired": "true",
        "isSoonExpired": "true",
        "hasChildren": "true",
        "hasResolution": "false",
        "isNew": "false",
        "hidden": "false",
        "registered": "false",
        "finished": "false",
        "inProgress": "false",
        "controlled": "false",
        "hasAttachments": "true",
        "defective": "false",
        "actions": 
            [   
                "35d757cf-5c91-4939-9b72-7bc4af84ebf4",
                "305fa7a9-6497-4cdf-a14a-6fb344199538",
                "41755a49-9d37-4beb-8814-03d69dce55c9"
            ] 
         },

{       "name": "document1",
        "content": "",
        "documentID": "f40b665c-f1f4-40b3-bdc5-291911def539",
        "number": "",
        "author": "Бобров С.Е.",
        "user": "",
        "regUser": "",
        "resUsers": "",
        "to": "",
        "from": "",
        "correspondent": "",
        "correspondentOrg": "",
        "type": "DOCUMENT",
        "createDate": "2016-10-20 11:09:00",
        "regDate": "",
        "statusID": "NOT_STARTED",
        "isExpired": "true",
        "isSoonExpired": "true",
        "hasChildren": "true",
        "hasResolution": "false",
        "isNew": "false",
        "hidden": "false",
        "registered": "false",
        "finished": "false",
        "inProgress": "false",
        "controlled": "false",
        "hasAttachments": "true",
        "defective": "false",
        "actions": [] 
        },
        
{       "name": "document2",
        "content": "",
        "documentID": "2260c2df-69aa-4e9c-8fd5-9e4cce131154",
        "number": "144-15-15",
        "author": "Васнецов Л.Е.",
        "user": "Абдрешен Л.С.",
        "regUser": "Акбердиева А.А.",
        "resUsers": "",
        "to": "",
        "from": "",
        "correspondent": "",
        "correspondentOrg": "",
        "type": "DOCUMENT",
        "createDate": "2016-11-12 11:09:00",
        "regDate": "2016-11-20 12:05:15",
        "statusID": "IN_PROGRESS",
        "isExpired": "true",
        "isSoonExpired": "true",
        "hasChildren": "true",
        "hasResolution": "false",
        "isNew": "false",
        "hidden": "false",
        "registered": "false",
        "finished": "false",
        "inProgress": "false",
        "controlled": "false",
        "hasAttachments": "true",
        "defective": "false",
        "actions": 
            [   
                "e1211f49-d962-4667-829d-26b7789c1e2c"
            ] 
         }
]