GET api/colorapi/colorsbycustomer/{customerId}?active={active}&lastUpdate={lastUpdate}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
customerId

globally unique identifier

Required

active

boolean

None.

lastUpdate

date

None.

Body Parameters

None.

Response Information

Resource Description

Collection of ColorViewModel
NameDescriptionTypeAdditional information
descriptions

Dictionary of string [key] and string [value]

None.

active

boolean

Required

code

string

Required

String length: inclusive between 0 and 30

customer_id

globally unique identifier

Required

hexadecimal_code

string

Required

String length: inclusive between 0 and 6

id

globally unique identifier

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "descriptions": {
      "sample string 1": "sample string 2",
      "sample string 3": "sample string 4"
    },
    "active": true,
    "code": "sample string 2",
    "customer_id": "34e5f8a5-4818-4d5b-8886-a70353ed689b",
    "hexadecimal_code": "sample string 4",
    "id": "f7a892f6-58b8-4531-b782-c5c4655675f0"
  },
  {
    "descriptions": {
      "sample string 1": "sample string 2",
      "sample string 3": "sample string 4"
    },
    "active": true,
    "code": "sample string 2",
    "customer_id": "34e5f8a5-4818-4d5b-8886-a70353ed689b",
    "hexadecimal_code": "sample string 4",
    "id": "f7a892f6-58b8-4531-b782-c5c4655675f0"
  }
]

application/xml, text/xml

Sample:
<ArrayOfcolor xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel">
  <color>
    <active>true</active>
    <code>sample string 2</code>
    <customer_id>34e5f8a5-4818-4d5b-8886-a70353ed689b</customer_id>
    <hexadecimal_code>sample string 4</hexadecimal_code>
    <id>f7a892f6-58b8-4531-b782-c5c4655675f0</id>
    <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>
  </color>
  <color>
    <active>true</active>
    <code>sample string 2</code>
    <customer_id>34e5f8a5-4818-4d5b-8886-a70353ed689b</customer_id>
    <hexadecimal_code>sample string 4</hexadecimal_code>
    <id>f7a892f6-58b8-4531-b782-c5c4655675f0</id>
    <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>
  </color>
</ArrayOfcolor>