POST api/workNormative/ResponsibilityUsers
[Ресурс устарел и будет удален.Используйте ResponsibilityGroups]
Request Information
URI Parameters
None.
Body Parameters
Путь норматива
WorkNormativePathViewModelName | Description | Type | Additional information |
---|---|---|---|
DepartmentId |
ссылка на отдел |
integer |
None. |
CategoryId |
ссылка на категорию |
integer |
None. |
RequestTypeId |
ссылка на тип заявки |
integer |
None. |
JobTypeId |
ссылка на тип работ |
integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "DepartmentId": 1, "CategoryId": 2, "RequestTypeId": 3, "JobTypeId": 4 }
text/html, multipart/form-data
Sample:
{"DepartmentId":1,"CategoryId":2,"RequestTypeId":3,"JobTypeId":4}
application/xml, text/xml
Sample:
<WorkNormativePathViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AGAT.TSSM.API.Models.WorkNormative"> <CategoryId>2</CategoryId> <DepartmentId>1</DepartmentId> <JobTypeId>4</JobTypeId> <RequestTypeId>3</RequestTypeId> </WorkNormativePathViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Success Resource Description
Список пользователей
Collection of EmployeeViewModelName | Description | Type | Additional information |
---|---|---|---|
Id |
Идентификатор сотрудника |
integer |
None. |
FirstName |
Имя сотрудника |
string |
None. |
LastName |
Фамилия сотрудника |
string |
None. |
Position |
Должность |
string |
None. |
Department |
Отдел сотрудника |
string |
None. |
Organization |
организация сотрудника |
string |
None. |
Error Resource Description (Реализовано не везде)
OperationResultName | Description | Type | Additional information |
---|---|---|---|
Target |
Возвращаемый объект |
Object |
None. |
Status |
Статус операции |
ResultStatus |
None. |
Error |
Детализация ошибки |
Error |
None. |
Response Formats
application/json, text/json
Sample:
[ { "Id": 1, "FirstName": "sample string 2", "LastName": "sample string 3", "Appoint": "sample string 5", "Position": "sample string 5", "Department": "sample string 6", "Organization": "sample string 7" }, { "Id": 1, "FirstName": "sample string 2", "LastName": "sample string 3", "Appoint": "sample string 5", "Position": "sample string 5", "Department": "sample string 6", "Organization": "sample string 7" } ]
text/html, multipart/form-data
Sample:
[{"Id":1,"FirstName":"sample string 2","LastName":"sample string 3","Appoint":"sample string 5","Position":"sample string 5","Department":"sample string 6","Organization":"sample string 7"},{"Id":1,"FirstName":"sample string 2","LastName":"sample string 3","Appoint":"sample string 5","Position":"sample string 5","Department":"sample string 6","Organization":"sample string 7"}]
application/xml, text/xml
Sample:
<ArrayOfEmployeeViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AGAT.TSSM.API.Models.Users"> <EmployeeViewModel> <Appoint>sample string 5</Appoint> <Department>sample string 6</Department> <FirstName>sample string 2</FirstName> <Id>1</Id> <LastName>sample string 3</LastName> <Organization>sample string 7</Organization> <Position>sample string 5</Position> </EmployeeViewModel> <EmployeeViewModel> <Appoint>sample string 5</Appoint> <Department>sample string 6</Department> <FirstName>sample string 2</FirstName> <Id>1</Id> <LastName>sample string 3</LastName> <Organization>sample string 7</Organization> <Position>sample string 5</Position> </EmployeeViewModel> </ArrayOfEmployeeViewModel>