User
available assistants
GET /api/v2/users/available/assistant HTTP/1.1
HTTP/1.1 200 OK
[ {
"id" : 9000000003,
"firstName" : "doctor",
"familyName" : "doctor",
"patronymicName" : "doctor",
"fullName" : "doctor doctor doctor",
"shortName" : "doctor d. d."
}, {
"id" : 9000000010,
"firstName" : "doctorstore",
"familyName" : "doctorstore",
"patronymicName" : "doctorstore",
"fullName" : "doctorstore doctorstore doctorstore",
"shortName" : "doctorstore d. d."
}, {
"id" : 9000000006,
"firstName" : "store",
"familyName" : "store",
"patronymicName" : "store",
"fullName" : "store store store",
"shortName" : "store s. s."
}, {
"id" : 1000000009,
"firstName" : "Женек",
"familyName" : "Балашов",
"patronymicName" : null,
"fullName" : "Балашов Женек",
"shortName" : "Балашов Ж."
}, {
"id" : 1000000007,
"firstName" : "Иван",
"familyName" : "Иванов",
"patronymicName" : null,
"fullName" : "Иванов Иван",
"shortName" : "Иванов И."
}, {
"id" : 1000000004,
"firstName" : "Иван",
"familyName" : "Иванов",
"patronymicName" : null,
"fullName" : "Иванов Иван",
"shortName" : "Иванов И."
}, {
"id" : 1000000016,
"firstName" : "Тимофей",
"familyName" : "Кадын",
"patronymicName" : "Юрьевич",
"fullName" : "Кадын Тимофей Юрьевич",
"shortName" : "Кадын Т. Ю."
}, {
"id" : 1000000022,
"firstName" : "Тимофей",
"familyName" : "Кадын",
"patronymicName" : "Юрьевич",
"fullName" : "Кадын Тимофей Юрьевич",
"shortName" : "Кадын Т. Ю."
}, {
"id" : 1000000014,
"firstName" : "Тимофей",
"familyName" : "Кадын",
"patronymicName" : "Юрьевич",
"fullName" : "Кадын Тимофей Юрьевич",
"shortName" : "Кадын Т. Ю."
}, {
"id" : 1000000001,
"firstName" : "Тимофей",
"familyName" : "Кадын",
"patronymicName" : null,
"fullName" : "Кадын Тимофей",
"shortName" : "Кадын Т."
}, {
"id" : 1000000023,
"firstName" : "Доктор",
"familyName" : "Новый",
"patronymicName" : null,
"fullName" : "Новый Доктор",
"shortName" : "Новый Д."
}, {
"id" : 1000000011,
"firstName" : "Александр",
"familyName" : "Пууманн",
"patronymicName" : null,
"fullName" : "Пууманн Александр",
"shortName" : "Пууманн А."
} ]
Path | Type | Description |
---|---|---|
|
|
id |
|
|
firstName |
|
|
familyName |
|
|
patronymicName |
available doctors
GET /api/v2/users/available/doctors HTTP/1.1
HTTP/1.1 200 OK
[ {
"id" : 9000000003,
"firstName" : "doctor",
"familyName" : "doctor",
"patronymicName" : "doctor",
"fullName" : "doctor doctor doctor",
"shortName" : "doctor d. d."
}, {
"id" : 9000000010,
"firstName" : "doctorstore",
"familyName" : "doctorstore",
"patronymicName" : "doctorstore",
"fullName" : "doctorstore doctorstore doctorstore",
"shortName" : "doctorstore d. d."
}, {
"id" : 1000000009,
"firstName" : "Женек",
"familyName" : "Балашов",
"patronymicName" : null,
"fullName" : "Балашов Женек",
"shortName" : "Балашов Ж."
}, {
"id" : 1000000007,
"firstName" : "Иван",
"familyName" : "Иванов",
"patronymicName" : null,
"fullName" : "Иванов Иван",
"shortName" : "Иванов И."
}, {
"id" : 1000000016,
"firstName" : "Тимофей",
"familyName" : "Кадын",
"patronymicName" : "Юрьевич",
"fullName" : "Кадын Тимофей Юрьевич",
"shortName" : "Кадын Т. Ю."
}, {
"id" : 1000000023,
"firstName" : "Доктор",
"familyName" : "Новый",
"patronymicName" : null,
"fullName" : "Новый Доктор",
"shortName" : "Новый Д."
}, {
"id" : 1000000011,
"firstName" : "Александр",
"familyName" : "Пууманн",
"patronymicName" : null,
"fullName" : "Пууманн Александр",
"shortName" : "Пууманн А."
} ]
Path | Type | Description |
---|---|---|
|
|
id |
|
|
firstName |
|
|
familyName |
|
|
patronymicName |
list active
GET /api/v2/users/active HTTP/1.1
HTTP/1.1 200 OK
[ {
"id" : 1000000013,
"firstName" : "2",
"familyName" : "1",
"patronymicName" : null,
"fullName" : "1 2",
"shortName" : "1 2."
}, {
"id" : 9999999999,
"firstName" : "EXTERNAL_API",
"familyName" : "EXTERNAL_API",
"patronymicName" : "EXTERNAL_API",
"fullName" : "EXTERNAL_API EXTERNAL_API EXTERNAL_API",
"shortName" : "EXTERNAL_API E. E."
}, {
"id" : 9000000002,
"firstName" : "accountant",
"familyName" : "accountant",
"patronymicName" : "accountant",
"fullName" : "accountant accountant accountant",
"shortName" : "accountant a. a."
}, {
"id" : 9000000007,
"firstName" : "admin",
"familyName" : "admin",
"patronymicName" : "admin",
"fullName" : "admin admin admin",
"shortName" : "admin a. a."
}, {
"id" : 9000000004,
"firstName" : "depot",
"familyName" : "depot",
"patronymicName" : "depot",
"fullName" : "depot depot depot",
"shortName" : "depot d. d."
}, {
"id" : 9000000003,
"firstName" : "doctor",
"familyName" : "doctor",
"patronymicName" : "doctor",
"fullName" : "doctor doctor doctor",
"shortName" : "doctor d. d."
}, {
"id" : 9000000010,
"firstName" : "doctorstore",
"familyName" : "doctorstore",
"patronymicName" : "doctorstore",
"fullName" : "doctorstore doctorstore doctorstore",
"shortName" : "doctorstore d. d."
}, {
"id" : 9000000001,
"firstName" : "manager",
"familyName" : "manager",
"patronymicName" : "manager",
"fullName" : "manager manager manager",
"shortName" : "manager m. m."
}, {
"id" : 9000000005,
"firstName" : "production",
"familyName" : "production",
"patronymicName" : "production",
"fullName" : "production production production",
"shortName" : "production p. p."
}, {
"id" : 9000000009,
"firstName" : "secretary",
"familyName" : "secretary",
"patronymicName" : "secretary",
"fullName" : "secretary secretary secretary",
"shortName" : "secretary s. s."
}, {
"id" : 9000000006,
"firstName" : "store",
"familyName" : "store",
"patronymicName" : "store",
"fullName" : "store store store",
"shortName" : "store s. s."
}, {
"id" : 9000000008,
"firstName" : "topmanager",
"familyName" : "topmanager",
"patronymicName" : "topmanager",
"fullName" : "topmanager topmanager topmanager",
"shortName" : "topmanager t. t."
}, {
"id" : 9000000011,
"firstName" : "wholesale",
"familyName" : "wholesale",
"patronymicName" : "wholesale",
"fullName" : "wholesale wholesale wholesale",
"shortName" : "wholesale w. w."
}, {
"id" : 1000000024,
"firstName" : "Александр",
"familyName" : "Антонов",
"patronymicName" : null,
"fullName" : "Антонов Александр",
"shortName" : "Антонов А."
}, {
"id" : 1000000025,
"firstName" : "Александр",
"familyName" : "Антонов",
"patronymicName" : null,
"fullName" : "Антонов Александр",
"shortName" : "Антонов А."
}, {
"id" : 1000000008,
"firstName" : "Женек",
"familyName" : "Балашов",
"patronymicName" : "Оптовый",
"fullName" : "Балашов Женек Оптовый",
"shortName" : "Балашов Ж. О."
}, {
"id" : 1000000010,
"firstName" : "Женек",
"familyName" : "Балашов",
"patronymicName" : null,
"fullName" : "Балашов Женек",
"shortName" : "Балашов Ж."
}, {
"id" : 1000000009,
"firstName" : "Женек",
"familyName" : "Балашов",
"patronymicName" : null,
"fullName" : "Балашов Женек",
"shortName" : "Балашов Ж."
}, {
"id" : 1000000012,
"firstName" : "Петров",
"familyName" : "Бухгалтер",
"patronymicName" : null,
"fullName" : "Бухгалтер Петров",
"shortName" : "Бухгалтер П."
}, {
"id" : 1000000004,
"firstName" : "Иван",
"familyName" : "Иванов",
"patronymicName" : null,
"fullName" : "Иванов Иван",
"shortName" : "Иванов И."
}, {
"id" : 1000000003,
"firstName" : "Иван",
"familyName" : "Иванов",
"patronymicName" : null,
"fullName" : "Иванов Иван",
"shortName" : "Иванов И."
}, {
"id" : 1000000006,
"firstName" : "Иван",
"familyName" : "Иванов",
"patronymicName" : null,
"fullName" : "Иванов Иван",
"shortName" : "Иванов И."
}, {
"id" : 1000000007,
"firstName" : "Иван",
"familyName" : "Иванов",
"patronymicName" : null,
"fullName" : "Иванов Иван",
"shortName" : "Иванов И."
}, {
"id" : 1000000005,
"firstName" : "Иван",
"familyName" : "Иванов",
"patronymicName" : null,
"fullName" : "Иванов Иван",
"shortName" : "Иванов И."
}, {
"id" : 1000000016,
"firstName" : "Тимофей",
"familyName" : "Кадын",
"patronymicName" : "Юрьевич",
"fullName" : "Кадын Тимофей Юрьевич",
"shortName" : "Кадын Т. Ю."
}, {
"id" : 1000000022,
"firstName" : "Тимофей",
"familyName" : "Кадын",
"patronymicName" : "Юрьевич",
"fullName" : "Кадын Тимофей Юрьевич",
"shortName" : "Кадын Т. Ю."
}, {
"id" : 1000000018,
"firstName" : "Тимофей",
"familyName" : "Кадын",
"patronymicName" : "Юрьевич",
"fullName" : "Кадын Тимофей Юрьевич",
"shortName" : "Кадын Т. Ю."
}, {
"id" : 1000000020,
"firstName" : "Тимофей",
"familyName" : "Кадын",
"patronymicName" : "Юрьевич",
"fullName" : "Кадын Тимофей Юрьевич",
"shortName" : "Кадын Т. Ю."
}, {
"id" : 1000000021,
"firstName" : "Тимофей",
"familyName" : "Кадын",
"patronymicName" : "Юрьевич",
"fullName" : "Кадын Тимофей Юрьевич",
"shortName" : "Кадын Т. Ю."
}, {
"id" : 1000000019,
"firstName" : "Тимофей",
"familyName" : "Кадын",
"patronymicName" : "Юрьевич",
"fullName" : "Кадын Тимофей Юрьевич",
"shortName" : "Кадын Т. Ю."
}, {
"id" : 1000000014,
"firstName" : "Тимофей",
"familyName" : "Кадын",
"patronymicName" : "Юрьевич",
"fullName" : "Кадын Тимофей Юрьевич",
"shortName" : "Кадын Т. Ю."
}, {
"id" : 1000000015,
"firstName" : "Тимофей",
"familyName" : "Кадын",
"patronymicName" : "Юрьевич",
"fullName" : "Кадын Тимофей Юрьевич",
"shortName" : "Кадын Т. Ю."
}, {
"id" : 1000000017,
"firstName" : "Тимофей",
"familyName" : "Кадын",
"patronymicName" : "Юрьевич",
"fullName" : "Кадын Тимофей Юрьевич",
"shortName" : "Кадын Т. Ю."
}, {
"id" : 1000000001,
"firstName" : "Тимофей",
"familyName" : "Кадын",
"patronymicName" : null,
"fullName" : "Кадын Тимофей",
"shortName" : "Кадын Т."
}, {
"id" : 1000000023,
"firstName" : "Доктор",
"familyName" : "Новый",
"patronymicName" : null,
"fullName" : "Новый Доктор",
"shortName" : "Новый Д."
}, {
"id" : 1000000011,
"firstName" : "Александр",
"familyName" : "Пууманн",
"patronymicName" : null,
"fullName" : "Пууманн Александр",
"shortName" : "Пууманн А."
} ]
Path | Type | Description |
---|---|---|
|
|
id |
|
|
firstName |
|
|
familyName |
|
|
patronymicName |
productions
GET /api/v2/users/production HTTP/1.1
HTTP/1.1 200 OK
[ {
"id" : 9000000005,
"firstName" : "production",
"familyName" : "production",
"patronymicName" : "production",
"fullName" : "production production production",
"shortName" : "production p. p."
}, {
"id" : 1000000003,
"firstName" : "Иван",
"familyName" : "Иванов",
"patronymicName" : null,
"fullName" : "Иванов Иван",
"shortName" : "Иванов И."
}, {
"id" : 1000000018,
"firstName" : "Тимофей",
"familyName" : "Кадын",
"patronymicName" : "Юрьевич",
"fullName" : "Кадын Тимофей Юрьевич",
"shortName" : "Кадын Т. Ю."
} ]
Path | Type | Description |
---|---|---|
|
|
Available production users |
|
|
id |
|
|
firstName |
|
|
familyName |
|
|
patronymicName |
assignable-users
Пользователи, которых можно назначить на продажу/ремонт и т.д.
GET /api/v2/users?roles=DOCTOR,DOCTOR_STORE¤tDepartment=ALL HTTP/1.1
Parameter | Description |
---|---|
|
Роли требуемых пользователей через запятую из набора: [STORE, DOCTOR, DOCTOR_STORE] |
|
Значения: ALL - пользователи, у которых текущее подразделение основное или дополнительное, ONLY_MAIN - пользователи, у которых текущее подразделение только основное |
HTTP/1.1 200 OK
{
"content" : [ {
"id" : 9000000010,
"login" : "doctorstore1852107959",
"firstName" : "doctorstore",
"familyName" : "doctorstore",
"patronymicName" : "doctorstore",
"departmentName" : "Первый магазин",
"userGroupName" : "Офтальмологи-продавцы",
"fired" : false
}, {
"id" : 1000000011,
"login" : "puumann",
"firstName" : "Александр",
"familyName" : "Пууманн",
"patronymicName" : null,
"departmentName" : "Первый магазин",
"userGroupName" : "Офтальмологи-продавцы",
"fired" : false
}, {
"id" : 1000000016,
"login" : "client2",
"firstName" : "Тимофей",
"familyName" : "Кадын",
"patronymicName" : "Юрьевич",
"departmentName" : "Первый магазин",
"userGroupName" : "Офтальмологи",
"fired" : false
}, {
"id" : 1000000009,
"login" : "neimperator",
"firstName" : "Женек",
"familyName" : "Балашов",
"patronymicName" : null,
"departmentName" : "Первый магазин",
"userGroupName" : "Офтальмологи-продавцы",
"fired" : false
}, {
"id" : 9000000003,
"login" : "doctor101618281",
"firstName" : "doctor",
"familyName" : "doctor",
"patronymicName" : "doctor",
"departmentName" : "Первый магазин",
"userGroupName" : "Офтальмологи",
"fired" : false
}, {
"id" : 1000000007,
"login" : "doctor",
"firstName" : "Иван",
"familyName" : "Иванов",
"patronymicName" : null,
"departmentName" : "Первый магазин",
"userGroupName" : "Офтальмологи",
"fired" : false
} ],
"pageable" : {
"pageNumber" : 0,
"pageSize" : 10,
"sort" : {
"empty" : false,
"sorted" : true,
"unsorted" : false
},
"offset" : 0,
"paged" : true,
"unpaged" : false
},
"last" : true,
"totalElements" : 6,
"totalPages" : 1,
"first" : true,
"size" : 10,
"number" : 0,
"sort" : {
"empty" : false,
"sorted" : true,
"unsorted" : false
},
"numberOfElements" : 6,
"empty" : false
}
Path | Type | Description |
---|---|---|
|
|
Список пользователей для смены пользователя |
|
|
id |
|
|
firstName |
|
|
familyName |
|
|
patronymicName |
get user
GET /api/v2/users/1000000001 HTTP/1.1
HTTP/1.1 200 OK
{
"id" : 1000000001,
"firstName" : "Тимофей",
"familyName" : "Кадын",
"patronymicName" : "Юрьевич",
"birthday" : "1961-03-02",
"passportNumber" : "54322",
"address" : "alskdjflkjeio 34 lkjds 8",
"tel1" : "1234567809",
"tel2" : "2938457982",
"email" : "admin@mail.ru",
"login" : "admin",
"pincode" : null,
"department" : {
"id" : 1000000001,
"type" : "OFFICE",
"name" : "Центральный офис",
"location" : {
"data" : {
"qc" : null,
"area" : null,
"city" : "Санкт-Петербург",
"flat" : null,
"block" : "2",
"floor" : null,
"house" : "12",
"metro" : null,
"okato" : "40298566000",
"oktmo" : "40913000",
"stead" : null,
"qc_geo" : "0",
"region" : "Санкт-Петербург",
"source" : null,
"street" : "Щербаков",
"country" : "Россия",
"fias_id" : "1b311976-2fdd-4f09-8c5b-5535c26c7c20",
"geo_lat" : "59.92836",
"geo_lon" : "30.345171",
"entrance" : null,
"kladr_id" : "78000000000154500",
"qc_house" : null,
"timezone" : null,
"area_type" : null,
"city_area" : null,
"city_type" : "г",
"divisions" : null,
"fias_code" : null,
"flat_area" : null,
"flat_type" : null,
"block_type" : "к",
"fias_level" : "7",
"flat_price" : null,
"geoname_id" : "498817",
"house_type" : "д",
"postal_box" : null,
"settlement" : null,
"stead_type" : null,
"tax_office" : "7840",
"beltway_hit" : null,
"flat_cadnum" : null,
"postal_code" : "191002",
"qc_complete" : null,
"region_type" : "г",
"street_type" : "пер",
"area_fias_id" : null,
"city_fias_id" : "c2deb16a-0330-4f05-821f-1d09c93331e6",
"flat_fias_id" : null,
"house_cadnum" : null,
"stead_cadnum" : null,
"area_kladr_id" : null,
"city_district" : "Центральный",
"city_kladr_id" : "7800000000000",
"house_fias_id" : null,
"stead_fias_id" : null,
"area_type_full" : null,
"area_with_type" : null,
"capital_marker" : "0",
"city_type_full" : "город",
"city_with_type" : "г Санкт-Петербург",
"flat_type_full" : null,
"history_values" : null,
"house_kladr_id" : null,
"region_fias_id" : "c2deb16a-0330-4f05-821f-1d09c93331e6",
"street_fias_id" : "1b311976-2fdd-4f09-8c5b-5535c26c7c20",
"unparsed_parts" : null,
"block_type_full" : "корпус",
"house_type_full" : "дом",
"region_iso_code" : "RU-SPE",
"region_kladr_id" : "7800000000000",
"settlement_type" : null,
"stead_type_full" : null,
"street_kladr_id" : "78000000000154500",
"beltway_distance" : null,
"country_iso_code" : "RU",
"federal_district" : "Северо-Западный",
"region_type_full" : "город",
"region_with_type" : "г Санкт-Петербург",
"street_type_full" : "переулок",
"street_with_type" : "Щербаков пер",
"tax_office_legal" : "7840",
"city_district_type" : "р-н",
"settlement_fias_id" : null,
"square_meter_price" : null,
"settlement_kladr_id" : null,
"fias_actuality_state" : "0",
"settlement_type_full" : null,
"settlement_with_type" : null,
"city_district_fias_id" : null,
"city_district_kladr_id" : null,
"city_district_type_full" : "район",
"city_district_with_type" : "Центральный р-н"
},
"string" : "г Санкт-Петербург, Щербаков пер, д 12 к 2"
},
"city" : "Санкт-Петербург",
"description" : "пер. Щербаков, д.12, корп.2",
"phone" : "+7(812) 425-64-22",
"timeZone" : 180,
"closed" : false,
"frMode" : false,
"hasServices" : true,
"legalEntityId" : 1,
"storeBrandId" : null,
"otherDepartmentSearchId" : null,
"depotId" : null,
"productionId" : null,
"cashAccountId" : null,
"cardAccountId" : null,
"collectionAccountId" : null,
"grayAccountId" : null,
"collectionGrayAccountId" : null,
"departmentOid" : null,
"departmentGuid" : null,
"departmentLpuId" : null
},
"userGroup" : {
"id" : 1000000007,
"name" : "Системный администратор",
"user" : null,
"users" : [ ]
},
"doctorCategory" : "Врач без лицензии",
"userPosition" : null,
"lang" : "ru",
"fired" : false,
"canLoginWithoutCertificate" : true,
"restricted" : false,
"snilsNumber" : null,
"additionalDepartments" : [ ],
"roles" : [ ],
"accessLevels" : [ {
"id" : 1000000008,
"name" : "Топ-менеджмент",
"user" : {
"id" : 1000000005,
"login" : "topmanager"
},
"users" : [ {
"id" : 1000000021,
"login" : "client7"
}, {
"id" : 1000000005,
"login" : "topmanager"
} ]
}, {
"id" : 1000000009,
"name" : "Секретарь",
"user" : null,
"users" : [ {
"id" : 1000000019,
"login" : "client5"
} ]
}, {
"id" : 1000000002,
"name" : "Бухгалтерия",
"user" : null,
"users" : [ {
"id" : 1000000015,
"login" : "kickerman_3"
} ]
}, {
"id" : 1000000003,
"name" : "Офтальмологи",
"user" : {
"id" : 1000000007,
"login" : "doctor"
},
"users" : [ {
"id" : 1000000016,
"login" : "client2"
}, {
"id" : 1000000007,
"login" : "doctor"
} ]
}, {
"id" : 1000000006,
"name" : "Продавцы",
"user" : {
"id" : 1000000004,
"login" : "store"
},
"users" : [ {
"id" : 1000000014,
"login" : "kickerman_2"
}, {
"id" : 1000000004,
"login" : "store"
}, {
"id" : 1000000022,
"login" : "client"
} ]
}, {
"id" : 1000000007,
"name" : "Системный администратор",
"user" : null,
"users" : [ {
"id" : 1000000020,
"login" : "kickerman_1"
} ]
}, {
"id" : 1000000004,
"name" : "Работники склада",
"user" : {
"id" : 1000000006,
"login" : "depot"
},
"users" : [ {
"id" : 1000000017,
"login" : "client3"
}, {
"id" : 1000000006,
"login" : "depot"
} ]
}, {
"id" : 1000000005,
"name" : "Работники цеха",
"user" : {
"id" : 1000000003,
"login" : "production"
},
"users" : [ {
"id" : 1000000003,
"login" : "production"
}, {
"id" : 1000000018,
"login" : "client4"
} ]
} ],
"medicalPosition" : null
}
Parameter | Description |
---|---|
|
userId |
serve type users
Все пользователи, на которых можно оформить услугу переданного типа
GET /api/v2/serves/types/1000000100/users HTTP/1.1
Parameter | Description |
---|---|
|
Id типа услуги |
HTTP/1.1 200 OK
[ {
"id" : 9000000003,
"firstName" : "doctor",
"familyName" : "doctor",
"patronymicName" : "doctor",
"departmentName" : "Первый магазин",
"userGroupName" : "Офтальмологи"
}, {
"id" : 1000000007,
"firstName" : "Иван",
"familyName" : "Иванов",
"patronymicName" : null,
"departmentName" : "Первый магазин",
"userGroupName" : "Офтальмологи"
}, {
"id" : 1000000016,
"firstName" : "Тимофей",
"familyName" : "Кадын",
"patronymicName" : "Юрьевич",
"departmentName" : "Первый магазин",
"userGroupName" : "Офтальмологи"
}, {
"id" : 9000000010,
"firstName" : "doctorstore",
"familyName" : "doctorstore",
"patronymicName" : "doctorstore",
"departmentName" : "Первый магазин",
"userGroupName" : "Офтальмологи-продавцы"
}, {
"id" : 1000000009,
"firstName" : "Женек",
"familyName" : "Балашов",
"patronymicName" : null,
"departmentName" : "Первый магазин",
"userGroupName" : "Офтальмологи-продавцы"
}, {
"id" : 1000000011,
"firstName" : "Александр",
"familyName" : "Пууманн",
"patronymicName" : null,
"departmentName" : "Первый магазин",
"userGroupName" : "Офтальмологи-продавцы"
}, {
"id" : 9000000006,
"firstName" : "store",
"familyName" : "store",
"patronymicName" : "store",
"departmentName" : "Первый магазин",
"userGroupName" : "Продавцы"
}, {
"id" : 1000000004,
"firstName" : "Иван",
"familyName" : "Иванов",
"patronymicName" : null,
"departmentName" : "Первый магазин",
"userGroupName" : "Продавцы"
}, {
"id" : 1000000014,
"firstName" : "Тимофей",
"familyName" : "Кадын",
"patronymicName" : "Юрьевич",
"departmentName" : "Первый магазин",
"userGroupName" : "Продавцы"
}, {
"id" : 1000000022,
"firstName" : "Тимофей",
"familyName" : "Кадын",
"patronymicName" : "Юрьевич",
"departmentName" : "Первый магазин",
"userGroupName" : "Продавцы"
}, {
"id" : 9000000005,
"firstName" : "production",
"familyName" : "production",
"patronymicName" : "production",
"departmentName" : "Цех",
"userGroupName" : "Работники цеха"
}, {
"id" : 1000000003,
"firstName" : "Иван",
"familyName" : "Иванов",
"patronymicName" : null,
"departmentName" : "Цех",
"userGroupName" : "Работники цеха"
}, {
"id" : 1000000018,
"firstName" : "Тимофей",
"familyName" : "Кадын",
"patronymicName" : "Юрьевич",
"departmentName" : "Цех",
"userGroupName" : "Работники цеха"
} ]
Path | Type | Description |
---|---|---|
|
|
login |
|
|
firstName |
|
|
familyName |
|
|
patronymicName |
|
|
departmentName |
|
|
userGroupName |
|
|
fired |
|
|
roleId |
create user
POST /api/v2/users HTTP/1.1
{
"departmentId" : 1000000001,
"userGroupId" : 1000000007,
"doctorCategory" : "Non-licensed doctor",
"lang" : "ru",
"firstName" : "Александр",
"familyName" : "Антонов",
"patronymicName" : null,
"birthday" : "2004-08-27",
"userPosition" : null,
"passportNumber" : null,
"address" : null,
"tel1" : null,
"tel2" : null,
"email" : null,
"snilsNumber" : null,
"medicalPosition" : null,
"login" : "SanyaAntonov",
"password" : "privetMiR123"
}
HTTP/1.1 201 Created
Location: /api/v2/users/1000000024
{
"id" : 1000000024,
"firstName" : "Александр",
"familyName" : "Антонов",
"patronymicName" : null,
"birthday" : "2004-08-27",
"passportNumber" : null,
"address" : null,
"tel1" : null,
"tel2" : null,
"email" : null,
"login" : "SanyaAntonov",
"pincode" : 1448280638,
"department" : {
"id" : 1000000001,
"type" : "OFFICE",
"name" : "Центральный офис",
"location" : {
"data" : {
"qc" : null,
"area" : null,
"city" : "Санкт-Петербург",
"flat" : null,
"block" : "2",
"floor" : null,
"house" : "12",
"metro" : null,
"okato" : "40298566000",
"oktmo" : "40913000",
"stead" : null,
"qc_geo" : "0",
"region" : "Санкт-Петербург",
"source" : null,
"street" : "Щербаков",
"country" : "Россия",
"fias_id" : "1b311976-2fdd-4f09-8c5b-5535c26c7c20",
"geo_lat" : "59.92836",
"geo_lon" : "30.345171",
"entrance" : null,
"kladr_id" : "78000000000154500",
"qc_house" : null,
"timezone" : null,
"area_type" : null,
"city_area" : null,
"city_type" : "г",
"divisions" : null,
"fias_code" : null,
"flat_area" : null,
"flat_type" : null,
"block_type" : "к",
"fias_level" : "7",
"flat_price" : null,
"geoname_id" : "498817",
"house_type" : "д",
"postal_box" : null,
"settlement" : null,
"stead_type" : null,
"tax_office" : "7840",
"beltway_hit" : null,
"flat_cadnum" : null,
"postal_code" : "191002",
"qc_complete" : null,
"region_type" : "г",
"street_type" : "пер",
"area_fias_id" : null,
"city_fias_id" : "c2deb16a-0330-4f05-821f-1d09c93331e6",
"flat_fias_id" : null,
"house_cadnum" : null,
"stead_cadnum" : null,
"area_kladr_id" : null,
"city_district" : "Центральный",
"city_kladr_id" : "7800000000000",
"house_fias_id" : null,
"stead_fias_id" : null,
"area_type_full" : null,
"area_with_type" : null,
"capital_marker" : "0",
"city_type_full" : "город",
"city_with_type" : "г Санкт-Петербург",
"flat_type_full" : null,
"history_values" : null,
"house_kladr_id" : null,
"region_fias_id" : "c2deb16a-0330-4f05-821f-1d09c93331e6",
"street_fias_id" : "1b311976-2fdd-4f09-8c5b-5535c26c7c20",
"unparsed_parts" : null,
"block_type_full" : "корпус",
"house_type_full" : "дом",
"region_iso_code" : "RU-SPE",
"region_kladr_id" : "7800000000000",
"settlement_type" : null,
"stead_type_full" : null,
"street_kladr_id" : "78000000000154500",
"beltway_distance" : null,
"country_iso_code" : "RU",
"federal_district" : "Северо-Западный",
"region_type_full" : "город",
"region_with_type" : "г Санкт-Петербург",
"street_type_full" : "переулок",
"street_with_type" : "Щербаков пер",
"tax_office_legal" : "7840",
"city_district_type" : "р-н",
"settlement_fias_id" : null,
"square_meter_price" : null,
"settlement_kladr_id" : null,
"fias_actuality_state" : "0",
"settlement_type_full" : null,
"settlement_with_type" : null,
"city_district_fias_id" : null,
"city_district_kladr_id" : null,
"city_district_type_full" : "район",
"city_district_with_type" : "Центральный р-н"
},
"string" : "г Санкт-Петербург, Щербаков пер, д 12 к 2"
},
"city" : "Санкт-Петербург",
"description" : "пер. Щербаков, д.12, корп.2",
"phone" : "+7(812) 425-64-22",
"timeZone" : 180,
"closed" : false,
"frMode" : false,
"hasServices" : true,
"legalEntityId" : 1,
"storeBrandId" : null,
"otherDepartmentSearchId" : null,
"depotId" : null,
"productionId" : null,
"cashAccountId" : null,
"cardAccountId" : null,
"collectionAccountId" : null,
"grayAccountId" : null,
"collectionGrayAccountId" : null,
"departmentOid" : null,
"departmentGuid" : null,
"departmentLpuId" : null
},
"userGroup" : {
"id" : 1000000007,
"name" : "Системный администратор",
"user" : null,
"users" : [ ]
},
"doctorCategory" : null,
"userPosition" : null,
"lang" : "ru",
"fired" : false,
"canLoginWithoutCertificate" : false,
"restricted" : false,
"snilsNumber" : null,
"additionalDepartments" : null,
"roles" : null,
"accessLevels" : [ ],
"medicalPosition" : null
}
user update
PUT /api/v2/users/1000000001 HTTP/1.1
{
"departmentId" : 1000000003,
"userGroupId" : 1000000006,
"doctorCategory" : "Non-licensed doctor",
"lang" : "ru",
"firstName" : "Тимофей",
"familyName" : "Кадын",
"patronymicName" : null,
"birthday" : null,
"userPosition" : null,
"passportNumber" : null,
"address" : null,
"tel1" : null,
"tel2" : null,
"email" : null,
"snilsNumber" : null,
"medicalPosition" : "DOCTOR",
"roles" : [ {
"name" : "clientsExcel"
} ],
"additionalDepartments" : [ ],
"restricted" : true,
"canLoginWithoutCertificate" : false,
"accessLevels" : [ {
"id" : 1,
"user" : {
"id" : 1000000015
}
} ]
}
HTTP/1.1 200 OK
Parameter | Description |
---|---|
|
userId |
get user list
GET /api/v2/users?size=3&fired=false HTTP/1.1
Parameter | Description |
---|---|
|
search by familyName or login all Matches |
|
filter fired users |
|
filter users by roleName |
|
HTTP/1.1 200 OK
{
"content" : [ {
"id" : 1000000001,
"login" : "admin",
"firstName" : "Тимофей",
"familyName" : "Кадын",
"patronymicName" : "Юрьевич",
"departmentName" : "Центральный офис",
"userGroupName" : "Системный администратор",
"fired" : false
}, {
"id" : 1000000003,
"login" : "production",
"firstName" : "Иван",
"familyName" : "Иванов",
"patronymicName" : null,
"departmentName" : "Цех",
"userGroupName" : "Работники цеха",
"fired" : false
}, {
"id" : 1000000004,
"login" : "store",
"firstName" : "Иван",
"familyName" : "Иванов",
"patronymicName" : null,
"departmentName" : "Первый магазин",
"userGroupName" : "Продавцы",
"fired" : false
} ],
"pageable" : {
"pageNumber" : 0,
"pageSize" : 3,
"sort" : {
"empty" : false,
"sorted" : true,
"unsorted" : false
},
"offset" : 0,
"paged" : true,
"unpaged" : false
},
"last" : false,
"totalElements" : 34,
"totalPages" : 12,
"first" : true,
"size" : 3,
"number" : 0,
"sort" : {
"empty" : false,
"sorted" : true,
"unsorted" : false
},
"numberOfElements" : 3,
"empty" : false
}
Path | Type | Description |
---|---|---|
|
|
login |
|
|
firstName |
|
|
familyName |
|
|
patronymicName |
|
|
departmentName |
|
|
userGroupName |
|
|
fired |
|
|
roleId |
fire user
PUT /api/v2/users/999999999/fire HTTP/1.1
Content-Type: application/x-www-form-urlencoded
HTTP/1.1 200 OK
Parameter | Description |
---|---|
|
userId |
recover user
PUT /api/v2/users/999999999/recover HTTP/1.1
Content-Type: application/x-www-form-urlencoded
HTTP/1.1 200 OK
Parameter | Description |
---|---|
|
userId |
block user
POST /api/v2/users/block/FULL HTTP/1.1
Content-Type: application/x-www-form-urlencoded
HTTP/1.1 200 OK
Parameter | Description |
---|---|
|
Type of blocking: 'OFFICE' (only office users) or 'FULL' (every user) |
update pincode
PUT /api/v2/users/1000000011/pincode HTTP/1.1
Content-Type: application/x-www-form-urlencoded
HTTP/1.1 200 OK
7715104159
Parameter | Description |
---|---|
|
userId |
update password
PUT /api/v2/users/1000000001/password HTTP/1.1
{
"password" : "privet123MiR"
}
HTTP/1.1 200 OK
Content-Disposition: attachment; filename=admin.key
Accept-Ranges: bytes
NAUYB4BJG3CHKIVBPWJVEFXEBIJ0XUDXAYOCLDEXAPJJVDMMGZKJT3RMU9QJDQIJ
Parameter | Description |
---|---|
|
userId |
get user-groups for user create
GET /api/v2/users/user-groups HTTP/1.1
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" : [ ]
} ]
download certificate
GET /api/v2/users/1000000001/certificate HTTP/1.1
HTTP/1.1 200 OK
Content-Disposition: attachment; filename=admin.key
Accept-Ranges: bytes
M3OCYYXE7AWPJG76KYZ2YYQEINE7CFWQD2RTHVAEOVCZVIZDPFYUSM0A4BTKCV6Z
Parameter | Description |
---|---|
|
userId |
arcode
generate barcode for user
GET /api/v2/users/1000000014/barcode HTTP/1.1
HTTP/1.1 200 OK
Content-Disposition: attachment; filename=kickerman_2.png
Accept-Ranges: bytes
�PNG
IHDR � ' ���F pHYs .# .#x�?v tEXtSoftware Barcode4J�v. /IDATx^c���σ ����}�1�q��g������
�r�r�r�r� 8����B�= IEND�B`�