POST api/GetColorList

Request Information

URI Parameters

None.

Body Parameters

Request
NameDescriptionTypeAdditional information
User

string

None.

UserId

integer

None.

ValidationKey

string

None.

Request Formats

application/json, text/json

Sample:
{
  "user": "sample string 1",
  "userId": 2,
  "validationKey": "sample string 3"
}

application/xml, text/xml

Sample:
<Request xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">
  <User>sample string 1</User>
  <UserId>2</UserId>
  <ValidationKey>sample string 3</ValidationKey>
</Request>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Request'.

Response Information

Resource Description

ColorResponseList
NameDescriptionTypeAdditional information
ItemList

Collection of ColorResponse

None.

ResultCode

integer

None.

ResultMessage

string

None.

ErrorMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "itemList": [
    {
      "codeColor": "sample string 1",
      "id": 2,
      "name": "sample string 3",
      "description": "sample string 4",
      "code": 5,
      "isEnabled": true,
      "isInUse": true,
      "resultCode": 8,
      "resultMessage": "sample string 9",
      "errorMessage": "sample string 10"
    },
    {
      "codeColor": "sample string 1",
      "id": 2,
      "name": "sample string 3",
      "description": "sample string 4",
      "code": 5,
      "isEnabled": true,
      "isInUse": true,
      "resultCode": 8,
      "resultMessage": "sample string 9",
      "errorMessage": "sample string 10"
    }
  ],
  "resultCode": 1,
  "resultMessage": "sample string 2",
  "errorMessage": "sample string 3"
}

application/xml, text/xml

Sample:
<ColorResponseList xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response.Color">
  <ErrorMessage xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">sample string 3</ErrorMessage>
  <ResultCode xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">1</ResultCode>
  <ResultMessage xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">sample string 2</ResultMessage>
  <ItemList>
    <ColorResponse>
      <ErrorMessage xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">sample string 10</ErrorMessage>
      <ResultCode xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">8</ResultCode>
      <ResultMessage xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">sample string 9</ResultMessage>
      <Code xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">5</Code>
      <Description xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">sample string 4</Description>
      <Id xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">2</Id>
      <IsEnabled xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">true</IsEnabled>
      <IsInUse xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">true</IsInUse>
      <Name xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">sample string 3</Name>
      <CodeColor>sample string 1</CodeColor>
    </ColorResponse>
    <ColorResponse>
      <ErrorMessage xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">sample string 10</ErrorMessage>
      <ResultCode xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">8</ResultCode>
      <ResultMessage xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">sample string 9</ResultMessage>
      <Code xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">5</Code>
      <Description xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">sample string 4</Description>
      <Id xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">2</Id>
      <IsEnabled xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">true</IsEnabled>
      <IsInUse xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">true</IsInUse>
      <Name xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">sample string 3</Name>
      <CodeColor>sample string 1</CodeColor>
    </ColorResponse>
  </ItemList>
</ColorResponseList>