GET api/colorapi/colorsbycustomer/{customerId}?active={active}&lastUpdate={lastUpdate}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| customerId | globally unique identifier |
Required |
|
| active | boolean |
None. |
|
| lastUpdate | date |
None. |
Body Parameters
None.
Response Information
Resource Description
Collection of ColorViewModel| Name | Description | Type | Additional 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": "b1bca1c1-4b5a-4c8a-8264-ca10802a60c5",
"hexadecimal_code": "sample string 4",
"id": "70b51262-f9d1-48ce-8af5-6fdf757f4b20"
},
{
"descriptions": {
"sample string 1": "sample string 2",
"sample string 3": "sample string 4"
},
"active": true,
"code": "sample string 2",
"customer_id": "b1bca1c1-4b5a-4c8a-8264-ca10802a60c5",
"hexadecimal_code": "sample string 4",
"id": "70b51262-f9d1-48ce-8af5-6fdf757f4b20"
}
]
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>b1bca1c1-4b5a-4c8a-8264-ca10802a60c5</customer_id>
<hexadecimal_code>sample string 4</hexadecimal_code>
<id>70b51262-f9d1-48ce-8af5-6fdf757f4b20</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>b1bca1c1-4b5a-4c8a-8264-ca10802a60c5</customer_id>
<hexadecimal_code>sample string 4</hexadecimal_code>
<id>70b51262-f9d1-48ce-8af5-6fdf757f4b20</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>