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": "f41d9d0b-d759-4396-982a-fa26c8b2be10",
    "selected_nameplate_id": "e2b93d27-7718-40c2-89b0-6c69caffaa69",
    "active": true,
    "department_id": "3239c23a-d3f4-450f-9292-84de82aef3e7",
    "id": "f02cd7c7-a60d-44c6-b979-1a9396821b1d",
    "physical_item_id": "b6db0fa0-e730-4b55-b50f-53777559f23e",
    "service_item_id": "79e20339-6f31-4eb3-9582-d430ec924e0a",
    "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": "f41d9d0b-d759-4396-982a-fa26c8b2be10",
    "selected_nameplate_id": "e2b93d27-7718-40c2-89b0-6c69caffaa69",
    "active": true,
    "department_id": "3239c23a-d3f4-450f-9292-84de82aef3e7",
    "id": "f02cd7c7-a60d-44c6-b979-1a9396821b1d",
    "physical_item_id": "b6db0fa0-e730-4b55-b50f-53777559f23e",
    "service_item_id": "79e20339-6f31-4eb3-9582-d430ec924e0a",
    "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>3239c23a-d3f4-450f-9292-84de82aef3e7</department_id>
    <id>f02cd7c7-a60d-44c6-b979-1a9396821b1d</id>
    <item_wash_max>1</item_wash_max>
    <physical_item_id>b6db0fa0-e730-4b55-b50f-53777559f23e</physical_item_id>
    <quantity>1</quantity>
    <service_item_id>79e20339-6f31-4eb3-9582-d430ec924e0a</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>e2b93d27-7718-40c2-89b0-6c69caffaa69</selected_nameplate_id>
    <selected_sticker_id>f41d9d0b-d759-4396-982a-fa26c8b2be10</selected_sticker_id>
  </department_item>
  <department_item>
    <active>true</active>
    <department_id>3239c23a-d3f4-450f-9292-84de82aef3e7</department_id>
    <id>f02cd7c7-a60d-44c6-b979-1a9396821b1d</id>
    <item_wash_max>1</item_wash_max>
    <physical_item_id>b6db0fa0-e730-4b55-b50f-53777559f23e</physical_item_id>
    <quantity>1</quantity>
    <service_item_id>79e20339-6f31-4eb3-9582-d430ec924e0a</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>e2b93d27-7718-40c2-89b0-6c69caffaa69</selected_nameplate_id>
    <selected_sticker_id>f41d9d0b-d759-4396-982a-fa26c8b2be10</selected_sticker_id>
  </department_item>
</ArrayOfdepartment_item>