GET api/departmentapi/departmentsbycontract/{contractId}?active={active}&lastUpdate={lastUpdate}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| contractId | globally unique identifier |
Required |
|
| active | boolean |
None. |
|
| lastUpdate | date |
None. |
Body Parameters
None.
Response Information
Resource Description
Collection of DepartmentViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| active | boolean |
Required |
|
| code | integer |
Required |
|
| contract_id | globally unique identifier |
Required |
|
| 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": "25fd86c6-f69e-4499-8641-db7595605e43",
"id": "ad6512ca-4829-4eff-92d0-6272982f644a",
"item_wash_max": 1,
"name": "sample string 5",
"remark": "sample string 6",
"selected_nameplate_id": "f03e3445-a56e-48e6-9db7-9ff23597695e",
"selected_sticker_id": "5052e283-365a-4503-a5b9-60412d525c86"
},
{
"active": true,
"code": 2,
"contract_id": "25fd86c6-f69e-4499-8641-db7595605e43",
"id": "ad6512ca-4829-4eff-92d0-6272982f644a",
"item_wash_max": 1,
"name": "sample string 5",
"remark": "sample string 6",
"selected_nameplate_id": "f03e3445-a56e-48e6-9db7-9ff23597695e",
"selected_sticker_id": "5052e283-365a-4503-a5b9-60412d525c86"
}
]
application/xml, text/xml
Sample:
<ArrayOfdepartment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel">
<department>
<active>true</active>
<code>2</code>
<contract_id>25fd86c6-f69e-4499-8641-db7595605e43</contract_id>
<id>ad6512ca-4829-4eff-92d0-6272982f644a</id>
<item_wash_max>1</item_wash_max>
<name>sample string 5</name>
<remark>sample string 6</remark>
<selected_nameplate_id>f03e3445-a56e-48e6-9db7-9ff23597695e</selected_nameplate_id>
<selected_sticker_id>5052e283-365a-4503-a5b9-60412d525c86</selected_sticker_id>
</department>
<department>
<active>true</active>
<code>2</code>
<contract_id>25fd86c6-f69e-4499-8641-db7595605e43</contract_id>
<id>ad6512ca-4829-4eff-92d0-6272982f644a</id>
<item_wash_max>1</item_wash_max>
<name>sample string 5</name>
<remark>sample string 6</remark>
<selected_nameplate_id>f03e3445-a56e-48e6-9db7-9ff23597695e</selected_nameplate_id>
<selected_sticker_id>5052e283-365a-4503-a5b9-60412d525c86</selected_sticker_id>
</department>
</ArrayOfdepartment>