GET api/packingtypeapi/packingtypesbysite/{siteId}?active={active}&lastUpdate={lastUpdate}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
siteId

globally unique identifier

Required

active

boolean

None.

lastUpdate

date

None.

Body Parameters

None.

Response Information

Resource Description

Collection of PackingTypeViewModel
NameDescriptionTypeAdditional information
descriptions

Dictionary of string [key] and string [value]

None.

id

globally unique identifier

None.

active

boolean

Required

site_id

globally unique identifier

Required

type

string

Required

String length: inclusive between 0 and 30

Response Formats

application/json, text/json

Sample:
[
  {
    "descriptions": {
      "sample string 1": "sample string 2",
      "sample string 3": "sample string 4"
    },
    "id": "973c1130-abab-4589-b32f-6d1944e876ab",
    "active": true,
    "site_id": "e6efd773-c0bd-413b-aeea-ddf634af4c48",
    "type": "sample string 4"
  },
  {
    "descriptions": {
      "sample string 1": "sample string 2",
      "sample string 3": "sample string 4"
    },
    "id": "973c1130-abab-4589-b32f-6d1944e876ab",
    "active": true,
    "site_id": "e6efd773-c0bd-413b-aeea-ddf634af4c48",
    "type": "sample string 4"
  }
]

application/xml, text/xml

Sample:
<ArrayOfpackingtype xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel">
  <packingtype>
    <active>true</active>
    <id>973c1130-abab-4589-b32f-6d1944e876ab</id>
    <site_id>e6efd773-c0bd-413b-aeea-ddf634af4c48</site_id>
    <type>sample string 4</type>
    <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>
    </descriptions>
  </packingtype>
  <packingtype>
    <active>true</active>
    <id>973c1130-abab-4589-b32f-6d1944e876ab</id>
    <site_id>e6efd773-c0bd-413b-aeea-ddf634af4c48</site_id>
    <type>sample string 4</type>
    <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>
    </descriptions>
  </packingtype>
</ArrayOfpackingtype>