GET api/departmentapi/departmentsbycontract/{contractId}?active={active}&lastUpdate={lastUpdate}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
contractId

globally unique identifier

Required

active

boolean

None.

lastUpdate

date

None.

Body Parameters

None.

Response Information

Resource Description

Collection of DepartmentViewModel
NameDescriptionTypeAdditional 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": "9eafea89-a0bc-438b-84ed-c9a06aef605c",
    "id": "65371ac1-a865-4d0b-b225-37839efb023f",
    "item_wash_max": 1,
    "name": "sample string 5",
    "remark": "sample string 6",
    "selected_nameplate_id": "ebf88846-69ae-4663-bb0d-b6edf4b02f52",
    "selected_sticker_id": "06c51b4d-441b-4dfa-bb4a-73642c501982"
  },
  {
    "active": true,
    "code": 2,
    "contract_id": "9eafea89-a0bc-438b-84ed-c9a06aef605c",
    "id": "65371ac1-a865-4d0b-b225-37839efb023f",
    "item_wash_max": 1,
    "name": "sample string 5",
    "remark": "sample string 6",
    "selected_nameplate_id": "ebf88846-69ae-4663-bb0d-b6edf4b02f52",
    "selected_sticker_id": "06c51b4d-441b-4dfa-bb4a-73642c501982"
  }
]

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>9eafea89-a0bc-438b-84ed-c9a06aef605c</contract_id>
    <id>65371ac1-a865-4d0b-b225-37839efb023f</id>
    <item_wash_max>1</item_wash_max>
    <name>sample string 5</name>
    <remark>sample string 6</remark>
    <selected_nameplate_id>ebf88846-69ae-4663-bb0d-b6edf4b02f52</selected_nameplate_id>
    <selected_sticker_id>06c51b4d-441b-4dfa-bb4a-73642c501982</selected_sticker_id>
  </department>
  <department>
    <active>true</active>
    <code>2</code>
    <contract_id>9eafea89-a0bc-438b-84ed-c9a06aef605c</contract_id>
    <id>65371ac1-a865-4d0b-b225-37839efb023f</id>
    <item_wash_max>1</item_wash_max>
    <name>sample string 5</name>
    <remark>sample string 6</remark>
    <selected_nameplate_id>ebf88846-69ae-4663-bb0d-b6edf4b02f52</selected_nameplate_id>
    <selected_sticker_id>06c51b4d-441b-4dfa-bb4a-73642c501982</selected_sticker_id>
  </department>
</ArrayOfdepartment>