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": "c959682e-5b27-4b93-8b4a-d7df39972a7a",
"hexadecimal_code": "sample string 4",
"id": "f51c8c22-d653-4abf-b410-4fd193e04ae4"
},
{
"descriptions": {
"sample string 1": "sample string 2",
"sample string 3": "sample string 4"
},
"active": true,
"code": "sample string 2",
"customer_id": "c959682e-5b27-4b93-8b4a-d7df39972a7a",
"hexadecimal_code": "sample string 4",
"id": "f51c8c22-d653-4abf-b410-4fd193e04ae4"
}
]
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>c959682e-5b27-4b93-8b4a-d7df39972a7a</customer_id>
<hexadecimal_code>sample string 4</hexadecimal_code>
<id>f51c8c22-d653-4abf-b410-4fd193e04ae4</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>c959682e-5b27-4b93-8b4a-d7df39972a7a</customer_id>
<hexadecimal_code>sample string 4</hexadecimal_code>
<id>f51c8c22-d653-4abf-b410-4fd193e04ae4</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>