POST api/CategoryRecommendation/Post

Request Information

URI Parameters

None.

Body Parameters

CategoryRecommendationFilter
NameDescriptionTypeAdditional information
RecommededLimit

integer

None.

InputText

string

None.

RootCategory

string

None.

Tenant

string

None.

Request Formats

application/json, text/json

Sample:
{
  "RecommededLimit": 1,
  "InputText": "sample string 2",
  "RootCategory": "sample string 3",
  "Tenant": "sample string 4"
}

application/xml, text/xml

Sample:
<CategoryRecommendationFilter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SearchEngine.Services.Categories.Models">
  <InputText>sample string 2</InputText>
  <RecommededLimit>1</RecommededLimit>
  <RootCategory>sample string 3</RootCategory>
  <Tenant>sample string 4</Tenant>
</CategoryRecommendationFilter>

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

Response Information

Resource Description

CategoryRecommendation
NameDescriptionTypeAdditional information
CategoryId

integer

None.

Category

string

None.

Score

decimal number

None.

Response Formats

application/json, text/json

Sample:
{
  "CategoryId": 1,
  "Category": "sample string 2",
  "Score": 3.1
}

application/xml, text/xml

Sample:
<CategoryRecommendation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SearchEngine.Services.Categories.Models">
  <Category>sample string 2</Category>
  <CategoryId>1</CategoryId>
  <Score>3.1</Score>
</CategoryRecommendation>