GET api/colorapi/color/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

globally unique identifier

Required

Body Parameters

None.

Response Information

Resource Description

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": "9786191e-bab4-4efd-a448-78d71fc5d008",
  "hexadecimal_code": "sample string 4",
  "id": "0e11e1b5-9ef6-4ddd-acb3-8d2e54e75b4f"
}

application/xml, text/xml

Sample:
<color xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel">
  <active>true</active>
  <code>sample string 2</code>
  <customer_id>9786191e-bab4-4efd-a448-78d71fc5d008</customer_id>
  <hexadecimal_code>sample string 4</hexadecimal_code>
  <id>0e11e1b5-9ef6-4ddd-acb3-8d2e54e75b4f</id>
  <descriptions xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 1</d2p1:Key>
      <d2p1:Value>sample string 2</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 3</d2p1:Key>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </descriptions>
</color>