GET api/departmentItemapi/departmentitemsbydepartment/{departmentId}?active={active}&lastUpdate={lastUpdate}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
departmentId

globally unique identifier

Required

active

boolean

None.

lastUpdate

date

None.

Body Parameters

None.

Response Information

Resource Description

Collection of DepartmentItemViewModel
NameDescriptionTypeAdditional information
item_code

string

None.

item_descriptions

Dictionary of string [key] and string [value]

None.

selected_sticker_id

globally unique identifier

None.

selected_nameplate_id

globally unique identifier

None.

active

boolean

Required

department_id

globally unique identifier

Required

id

globally unique identifier

None.

physical_item_id

globally unique identifier

None.

service_item_id

globally unique identifier

None.

item_wash_max

integer

None.

quantity

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "item_code": "sample string 1",
    "item_descriptions": {
      "sample string 1": "sample string 2",
      "sample string 3": "sample string 4"
    },
    "selected_sticker_id": "6e67fadb-4887-43c8-a1e7-b649fef5d260",
    "selected_nameplate_id": "c623733a-daf6-4fd3-8669-b8fe8f9cd6b3",
    "active": true,
    "department_id": "373ac2d7-f164-406e-add7-f70622e4f93c",
    "id": "51189d64-40df-4f29-8174-0d18c2701d23",
    "physical_item_id": "af2e455b-a1b0-4eee-8158-49b00f1569d4",
    "service_item_id": "779cb755-51d9-4ac6-9560-0e8122d839c0",
    "item_wash_max": 1,
    "quantity": 1
  },
  {
    "item_code": "sample string 1",
    "item_descriptions": {
      "sample string 1": "sample string 2",
      "sample string 3": "sample string 4"
    },
    "selected_sticker_id": "6e67fadb-4887-43c8-a1e7-b649fef5d260",
    "selected_nameplate_id": "c623733a-daf6-4fd3-8669-b8fe8f9cd6b3",
    "active": true,
    "department_id": "373ac2d7-f164-406e-add7-f70622e4f93c",
    "id": "51189d64-40df-4f29-8174-0d18c2701d23",
    "physical_item_id": "af2e455b-a1b0-4eee-8158-49b00f1569d4",
    "service_item_id": "779cb755-51d9-4ac6-9560-0e8122d839c0",
    "item_wash_max": 1,
    "quantity": 1
  }
]

application/xml, text/xml

Sample:
<ArrayOfdepartment_item xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel">
  <department_item>
    <active>true</active>
    <department_id>373ac2d7-f164-406e-add7-f70622e4f93c</department_id>
    <id>51189d64-40df-4f29-8174-0d18c2701d23</id>
    <item_wash_max>1</item_wash_max>
    <physical_item_id>af2e455b-a1b0-4eee-8158-49b00f1569d4</physical_item_id>
    <quantity>1</quantity>
    <service_item_id>779cb755-51d9-4ac6-9560-0e8122d839c0</service_item_id>
    <item_code>sample string 1</item_code>
    <item_descriptions xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>sample string 1</d3p1:Key>
        <d3p1:Value>sample string 2</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>sample string 3</d3p1:Key>
        <d3p1:Value>sample string 4</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </item_descriptions>
    <selected_nameplate_id>c623733a-daf6-4fd3-8669-b8fe8f9cd6b3</selected_nameplate_id>
    <selected_sticker_id>6e67fadb-4887-43c8-a1e7-b649fef5d260</selected_sticker_id>
  </department_item>
  <department_item>
    <active>true</active>
    <department_id>373ac2d7-f164-406e-add7-f70622e4f93c</department_id>
    <id>51189d64-40df-4f29-8174-0d18c2701d23</id>
    <item_wash_max>1</item_wash_max>
    <physical_item_id>af2e455b-a1b0-4eee-8158-49b00f1569d4</physical_item_id>
    <quantity>1</quantity>
    <service_item_id>779cb755-51d9-4ac6-9560-0e8122d839c0</service_item_id>
    <item_code>sample string 1</item_code>
    <item_descriptions xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>sample string 1</d3p1:Key>
        <d3p1:Value>sample string 2</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>sample string 3</d3p1:Key>
        <d3p1:Value>sample string 4</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </item_descriptions>
    <selected_nameplate_id>c623733a-daf6-4fd3-8669-b8fe8f9cd6b3</selected_nameplate_id>
    <selected_sticker_id>6e67fadb-4887-43c8-a1e7-b649fef5d260</selected_sticker_id>
  </department_item>
</ArrayOfdepartment_item>