GET api/SearchFilter/InitializeComponents

returns list of available search fields

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

FilterComponents
NameDescriptionTypeAdditional information
AvailableFields

Collection of SearchFieldTemplate

None.

MinDate

integer

None.

MaxDate

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "AvailableFields": [
    {
      "id": 1,
      "description": "sample string 2",
      "displayValue": "sample string 3",
      "fieldType": 0,
      "fieldValues": [
        "sample string 1",
        "sample string 2"
      ]
    },
    {
      "id": 1,
      "description": "sample string 2",
      "displayValue": "sample string 3",
      "fieldType": 0,
      "fieldValues": [
        "sample string 1",
        "sample string 2"
      ]
    }
  ],
  "MinDate": 1,
  "MaxDate": 2
}

application/xml, text/xml

Sample:
<FilterComponents xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebSearch.Models">
  <AvailableFields>
    <SearchFieldTemplate>
      <description>sample string 2</description>
      <displayValue>sample string 3</displayValue>
      <fieldType>String</fieldType>
      <fieldValues xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </fieldValues>
      <id>1</id>
    </SearchFieldTemplate>
    <SearchFieldTemplate>
      <description>sample string 2</description>
      <displayValue>sample string 3</displayValue>
      <fieldType>String</fieldType>
      <fieldValues xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </fieldValues>
      <id>1</id>
    </SearchFieldTemplate>
  </AvailableFields>
  <MaxDate>2</MaxDate>
  <MinDate>1</MinDate>
</FilterComponents>