GET api/departmentapi/department/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
DepartmentViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| active | boolean |
Required |
|
| code | integer |
Required |
|
| contract_id | globally unique identifier |
Required |
|
| delay_between_scans | integer |
None. |
|
| id | globally unique identifier |
None. |
|
| item_wash_max | integer |
None. |
|
| name | string |
None. |
|
| remark | string |
None. |
|
| selected_nameplate_id | globally unique identifier |
None. |
|
| selected_sticker_id | globally unique identifier |
None. |
Response Formats
application/json, text/json
Sample:
{
"active": true,
"code": 2,
"contract_id": "b9ef5644-024e-4ff1-818d-687c60982bb0",
"delay_between_scans": 1,
"id": "a1978a7b-4724-4e0e-9f1c-6ad2a119474b",
"item_wash_max": 1,
"name": "sample string 5",
"remark": "sample string 6",
"selected_nameplate_id": "e93be0b8-4fac-4a16-8189-e082e5db035c",
"selected_sticker_id": "7669383d-b9c1-4f32-847e-9fddeab978f2"
}
application/xml, text/xml
Sample:
<department xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel"> <active>true</active> <code>2</code> <contract_id>b9ef5644-024e-4ff1-818d-687c60982bb0</contract_id> <delay_between_scans>1</delay_between_scans> <id>a1978a7b-4724-4e0e-9f1c-6ad2a119474b</id> <item_wash_max>1</item_wash_max> <name>sample string 5</name> <remark>sample string 6</remark> <selected_nameplate_id>e93be0b8-4fac-4a16-8189-e082e5db035c</selected_nameplate_id> <selected_sticker_id>7669383d-b9c1-4f32-847e-9fddeab978f2</selected_sticker_id> </department>