UserGroup
user group list
request
GET /api/v2/user-groups HTTP/1.1
response
HTTP/1.1 200 OK
[ {
"id" : 1000000001,
"name" : "Менеджмент",
"user" : null,
"users" : [ ]
}, {
"id" : 1000000002,
"name" : "Бухгалтерия",
"user" : null,
"users" : [ ]
}, {
"id" : 1000000003,
"name" : "Офтальмологи",
"user" : null,
"users" : [ ]
}, {
"id" : 1000000004,
"name" : "Работники склада",
"user" : null,
"users" : [ ]
}, {
"id" : 1000000005,
"name" : "Работники цеха",
"user" : null,
"users" : [ ]
}, {
"id" : 1000000007,
"name" : "Системный администратор",
"user" : null,
"users" : [ ]
}, {
"id" : 1000000008,
"name" : "Топ-менеджмент",
"user" : null,
"users" : [ ]
}, {
"id" : 1000000009,
"name" : "Секретарь",
"user" : null,
"users" : [ ]
}, {
"id" : 1000000010,
"name" : "Офтальмологи-продавцы",
"user" : null,
"users" : [ ]
}, {
"id" : 1000000006,
"name" : "Продавцы",
"user" : null,
"users" : [ ]
}, {
"id" : 1000000011,
"name" : "Оптовый клиент",
"user" : null,
"users" : [ ]
} ]
roles by user group
request
GET /api/v2/user-groups/1000000002/roles HTTP/1.1
response
HTTP/1.1 200 OK
[ {
"name" : "salesProfitReport",
"description" : "Отчет: Валовая прибыль по продажам"
}, {
"name" : "supplierStockReport",
"description" : "Отчет: Остатки товара по поставщикам"
}, {
"name" : "supplierStockMovementReport",
"description" : "Отчет: Закупки и продажи по поставщикам"
}, {
"name" : "supplyModify",
"description" : "Изменение подтвержденной поставки"
} ]