GET api/workNormative/departments/{id}
Отдел норматива с идентификатором Id
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
Идентификатор отдела |
integer |
Required |
Body Parameters
None.
Response Information
Success Resource Description
Возвращает отдел
DepartmentViewModelName | Description | Type | Additional information |
---|---|---|---|
Id |
Код отдела |
integer |
None. |
Name |
Наименование отдела |
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, "Name": "sample string 2" }
text/html, multipart/form-data
Sample:
{"Id":1,"Name":"sample string 2"}
application/xml, text/xml
Sample:
<DepartmentViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AGAT.TSSM.API.Models.WorkNormative"> <Id>1</Id> <Name>sample string 2</Name> </DepartmentViewModel>