POST api/SearchFilter/ExecuteSearch

search

Request Information

URI Parameters

None.

Body Parameters

SearchRequest
NameDescriptionTypeAdditional information
StartIndex

integer

None.

EndIndex

integer

None.

SearchFilter

Filter

None.

SortFieldId

integer

None.

IsSortAscending

boolean

None.

pricingDate

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "StartIndex": 1,
  "EndIndex": 2,
  "SearchFilter": {
    "FilterLines": [
      {
        "Concat": 0,
        "FilterFieldId": 1,
        "Operand": 0,
        "LowerBound": 2.1,
        "UpperBound": 3.1,
        "DelimitedString": "sample string 4",
        "DelimitedItems": [
          "sample string 1",
          "sample string 2"
        ],
        "GroupItems": [
          "sample string 1",
          "sample string 2"
        ],
        "RowId": 5
      },
      {
        "Concat": 0,
        "FilterFieldId": 1,
        "Operand": 0,
        "LowerBound": 2.1,
        "UpperBound": 3.1,
        "DelimitedString": "sample string 4",
        "DelimitedItems": [
          "sample string 1",
          "sample string 2"
        ],
        "GroupItems": [
          "sample string 1",
          "sample string 2"
        ],
        "RowId": 5
      }
    ],
    "Id": 1,
    "Name": "sample string 2"
  },
  "SortFieldId": 3,
  "IsSortAscending": true,
  "pricingDate": 5
}

application/xml, text/xml

Sample:
<SearchRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebSearch.Models">
  <EndIndex>2</EndIndex>
  <IsSortAscending>true</IsSortAscending>
  <SearchFilter>
    <Id>1</Id>
    <Name>sample string 2</Name>
    <FilterLines xmlns:d3p1="http://schemas.datacontract.org/2004/07/">
      <d3p1:FilterLine>
        <d3p1:Concat>And</d3p1:Concat>
        <d3p1:DelimitedItems xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>sample string 1</d5p1:string>
          <d5p1:string>sample string 2</d5p1:string>
        </d3p1:DelimitedItems>
        <d3p1:DelimitedString>sample string 4</d3p1:DelimitedString>
        <d3p1:FilterFieldId>1</d3p1:FilterFieldId>
        <d3p1:GroupItems xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>sample string 1</d5p1:string>
          <d5p1:string>sample string 2</d5p1:string>
        </d3p1:GroupItems>
        <d3p1:LowerBound>2.1</d3p1:LowerBound>
        <d3p1:Operand>Equal</d3p1:Operand>
        <d3p1:RowId>5</d3p1:RowId>
        <d3p1:UpperBound>3.1</d3p1:UpperBound>
      </d3p1:FilterLine>
      <d3p1:FilterLine>
        <d3p1:Concat>And</d3p1:Concat>
        <d3p1:DelimitedItems xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>sample string 1</d5p1:string>
          <d5p1:string>sample string 2</d5p1:string>
        </d3p1:DelimitedItems>
        <d3p1:DelimitedString>sample string 4</d3p1:DelimitedString>
        <d3p1:FilterFieldId>1</d3p1:FilterFieldId>
        <d3p1:GroupItems xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>sample string 1</d5p1:string>
          <d5p1:string>sample string 2</d5p1:string>
        </d3p1:GroupItems>
        <d3p1:LowerBound>2.1</d3p1:LowerBound>
        <d3p1:Operand>Equal</d3p1:Operand>
        <d3p1:RowId>5</d3p1:RowId>
        <d3p1:UpperBound>3.1</d3p1:UpperBound>
      </d3p1:FilterLine>
    </FilterLines>
  </SearchFilter>
  <SortFieldId>3</SortFieldId>
  <StartIndex>1</StartIndex>
  <pricingDate>5</pricingDate>
</SearchRequest>

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 'SearchRequest'.

Response Information

Resource Description

SearchResponce
NameDescriptionTypeAdditional information
EndIndex

integer

None.

StartIndex

integer

None.

TotalCount

integer

None.

Data

Collection of SearchResult

None.

Response Formats

application/json, text/json

Sample:
{
  "EndIndex": 1,
  "StartIndex": 2,
  "TotalCount": 3,
  "Data": [
    {
      "Id": 1,
      "Identifier": "sample string 2",
      "Issuer": "sample string 3",
      "Registration": "sample string 4",
      "Price": 5.1,
      "ShareOutstanding": 6.1,
      "Currency": "sample string 7",
      "Columns": [
        {
          "Id": 1,
          "Value": "sample string 2"
        },
        {
          "Id": 1,
          "Value": "sample string 2"
        }
      ]
    },
    {
      "Id": 1,
      "Identifier": "sample string 2",
      "Issuer": "sample string 3",
      "Registration": "sample string 4",
      "Price": 5.1,
      "ShareOutstanding": 6.1,
      "Currency": "sample string 7",
      "Columns": [
        {
          "Id": 1,
          "Value": "sample string 2"
        },
        {
          "Id": 1,
          "Value": "sample string 2"
        }
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<SearchResponce xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebSearch.Models">
  <Data>
    <SearchResult>
      <Columns>
        <Column>
          <Id>1</Id>
          <Value>sample string 2</Value>
        </Column>
        <Column>
          <Id>1</Id>
          <Value>sample string 2</Value>
        </Column>
      </Columns>
      <Currency>sample string 7</Currency>
      <Id>1</Id>
      <Identifier>sample string 2</Identifier>
      <Issuer>sample string 3</Issuer>
      <Price>5.1</Price>
      <Registration>sample string 4</Registration>
      <ShareOutstanding>6.1</ShareOutstanding>
    </SearchResult>
    <SearchResult>
      <Columns>
        <Column>
          <Id>1</Id>
          <Value>sample string 2</Value>
        </Column>
        <Column>
          <Id>1</Id>
          <Value>sample string 2</Value>
        </Column>
      </Columns>
      <Currency>sample string 7</Currency>
      <Id>1</Id>
      <Identifier>sample string 2</Identifier>
      <Issuer>sample string 3</Issuer>
      <Price>5.1</Price>
      <Registration>sample string 4</Registration>
      <ShareOutstanding>6.1</ShareOutstanding>
    </SearchResult>
  </Data>
  <EndIndex>1</EndIndex>
  <StartIndex>2</StartIndex>
  <TotalCount>3</TotalCount>
</SearchResponce>