POST api/AdvanceSearch/Search

Request Information

URI Parameters

None.

Body Parameters

SearchModel
NameDescriptionTypeAdditional information
SearchID

integer

None.

SearchName

string

None.

SearchDescription

string

None.

SaveSearch

boolean

None.

QueryData

Collection of QueryDataModel

None.

RowCount

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "SearchID": 1,
  "SearchName": "sample string 2",
  "SearchDescription": "sample string 3",
  "SaveSearch": true,
  "QueryData": [
    {
      "FilterID": 1,
      "OperatorID": 2,
      "Value": "sample string 3",
      "FilterText": "sample string 4",
      "OperatorText": "sample string 5"
    },
    {
      "FilterID": 1,
      "OperatorID": 2,
      "Value": "sample string 3",
      "FilterText": "sample string 4",
      "OperatorText": "sample string 5"
    }
  ],
  "RowCount": 5
}

application/xml, text/xml

Sample:
<SearchModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CSI.Cx360.WebAPI.Models.Search">
  <QueryData>
    <QueryDataModel>
      <FilterID>1</FilterID>
      <FilterText>sample string 4</FilterText>
      <OperatorID>2</OperatorID>
      <OperatorText>sample string 5</OperatorText>
      <Value>sample string 3</Value>
    </QueryDataModel>
    <QueryDataModel>
      <FilterID>1</FilterID>
      <FilterText>sample string 4</FilterText>
      <OperatorID>2</OperatorID>
      <OperatorText>sample string 5</OperatorText>
      <Value>sample string 3</Value>
    </QueryDataModel>
  </QueryData>
  <RowCount>5</RowCount>
  <SaveSearch>true</SaveSearch>
  <SearchDescription>sample string 3</SearchDescription>
  <SearchID>1</SearchID>
  <SearchName>sample string 2</SearchName>
</SearchModel>

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

Response Information

Resource Description

Object

None.

Response Formats

application/json, text/json

Sample:
{}

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />