GET api/packagingtypeapi/packagingtypesbysite/{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 PackagingTypeViewModel
NameDescriptionTypeAdditional information
descriptions

Dictionary of string [key] and string [value]

None.

id

globally unique identifier

None.

active

boolean

None.

site_id

globally unique identifier

None.

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": "a4f0c365-1d06-4db0-9bcf-1a2707a6d216",
    "active": true,
    "site_id": "f21fea31-0256-49c7-b836-45e56767ba1b",
    "type": "sample string 4"
  },
  {
    "descriptions": {
      "sample string 1": "sample string 2",
      "sample string 3": "sample string 4"
    },
    "id": "a4f0c365-1d06-4db0-9bcf-1a2707a6d216",
    "active": true,
    "site_id": "f21fea31-0256-49c7-b836-45e56767ba1b",
    "type": "sample string 4"
  }
]

application/xml, text/xml

Sample:
<ArrayOfpackagingtype xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel">
  <packagingtype>
    <active>true</active>
    <id>a4f0c365-1d06-4db0-9bcf-1a2707a6d216</id>
    <site_id>f21fea31-0256-49c7-b836-45e56767ba1b</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>
  </packagingtype>
  <packagingtype>
    <active>true</active>
    <id>a4f0c365-1d06-4db0-9bcf-1a2707a6d216</id>
    <site_id>f21fea31-0256-49c7-b836-45e56767ba1b</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>
  </packagingtype>
</ArrayOfpackagingtype>