POST api/Search/GetFaceted?facetedKey={facetedKey}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
facetedKey

string

Required

Body Parameters

SearchParameters
NameDescriptionTypeAdditional information
Tenant

string

None.

Category

string

None.

CategoryName

string

None.

MainCategory

string

None.

CategoryLevel

integer

None.

CategoryByTenant

string

None.

County

string

None.

City

string

None.

Radius

decimal number

None.

RadiusCenterLatitude

decimal number

None.

RadiusCenterLongitude

decimal number

None.

Area

string

None.

Make

string

None.

Model

string

None.

Color

string

None.

CarRegistrationYear

string

None.

CarBody

string

None.

CarState

string

None.

CarGear

string

None.

Fuel

string

None.

RealEstateBuildingYear

string

None.

RealEstateAdType

string

None.

FreeSearch

string

None.

PageIndex

integer

None.

PageSize

integer

None.

OrderBy

string

None.

OrderDirection

string

None.

FromDate

date

None.

FromTicks

integer

None.

UserId

string

None.

DynamicParameters

Dictionary of string [key] and string [value]

None.

Request Formats

application/json, text/json

Sample:
{
  "Tenant": "sample string 1",
  "Category": "sample string 2",
  "CategoryName": "sample string 2",
  "MainCategory": "sample string 3",
  "CategoryLevel": 0,
  "CategoryByTenant": "sample string 2",
  "County": "sample string 4",
  "City": "sample string 5",
  "Radius": 6.1,
  "RadiusCenterLatitude": 7.1,
  "RadiusCenterLongitude": 8.1,
  "Area": "sample string 9",
  "Make": "sample string 10",
  "Model": "sample string 11",
  "Color": "sample string 12",
  "CarRegistrationYear": "sample string 13",
  "CarBody": "sample string 14",
  "CarState": "sample string 15",
  "CarGear": "sample string 16",
  "Fuel": "sample string 17",
  "RealEstateBuildingYear": "sample string 18",
  "RealEstateAdType": "sample string 19",
  "FreeSearch": "sample string 20",
  "PageIndex": 1,
  "PageSize": 20,
  "OrderBy": "sample string 21",
  "OrderDirection": "sample string 22",
  "FromDate": "0001-01-01T00:00:00.0000001",
  "FromTicks": 1,
  "UserId": "sample string 23",
  "DynamicParameters": {
    "sample string 1": "sample string 2",
    "sample string 3": "sample string 4"
  }
}

application/xml, text/xml

Sample:
<SearchParameters xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SearchEngine.Models">
  <Area>sample string 9</Area>
  <CarBody>sample string 14</CarBody>
  <CarGear>sample string 16</CarGear>
  <CarRegistrationYear>sample string 13</CarRegistrationYear>
  <CarState>sample string 15</CarState>
  <Category>sample string 2</Category>
  <City>sample string 5</City>
  <Color>sample string 12</Color>
  <County>sample string 4</County>
  <DynamicParameters 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>
  </DynamicParameters>
  <FreeSearch>sample string 20</FreeSearch>
  <FromDate>0001-01-01T00:00:00.0000001</FromDate>
  <FromTicks>1</FromTicks>
  <Fuel>sample string 17</Fuel>
  <MainCategory>sample string 3</MainCategory>
  <Make>sample string 10</Make>
  <Model>sample string 11</Model>
  <OrderBy>sample string 21</OrderBy>
  <OrderDirection>sample string 22</OrderDirection>
  <Radius>6.1</Radius>
  <RadiusCenterLatitude>7.1</RadiusCenterLatitude>
  <RadiusCenterLongitude>8.1</RadiusCenterLongitude>
  <RealEstateAdType>sample string 19</RealEstateAdType>
  <RealEstateBuildingYear>sample string 18</RealEstateBuildingYear>
  <Tenant>sample string 1</Tenant>
  <UserId>sample string 23</UserId>
</SearchParameters>

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

Response Information

Resource Description

Collection of FacetedField
NameDescriptionTypeAdditional information
Name

string

None.

Slug

string

None.

Count

integer

None.

IsParent

boolean

None.

Level

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Name": "sample string 1",
    "Slug": "sample string 2",
    "Count": 3,
    "IsParent": true,
    "Level": 5
  },
  {
    "Name": "sample string 1",
    "Slug": "sample string 2",
    "Count": 3,
    "IsParent": true,
    "Level": 5
  }
]

application/xml, text/xml

Sample:
<ArrayOfFacetedField xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SearchEngine.Models">
  <FacetedField>
    <Count>3</Count>
    <IsParent>true</IsParent>
    <Level>5</Level>
    <Name>sample string 1</Name>
    <Slug>sample string 2</Slug>
  </FacetedField>
  <FacetedField>
    <Count>3</Count>
    <IsParent>true</IsParent>
    <Level>5</Level>
    <Name>sample string 1</Name>
    <Slug>sample string 2</Slug>
  </FacetedField>
</ArrayOfFacetedField>