POST Search/Search

Request Information

URI Parameters

None.

Body Parameters

RequestSearch
NameDescriptionTypeAdditional information
Keyword

string

None.

MinScore

integer

None.

SearchType

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Keyword": "sample string 1",
  "MinScore": 2,
  "SearchType": 3
}

text/html

Sample:
{"Keyword":"sample string 1","MinScore":2,"SearchType":3}

application/xml, text/xml

Sample:
<RequestSearch xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LAWSchoolAPI.Models.RequestModels">
  <Keyword>sample string 1</Keyword>
  <MinScore>2</MinScore>
  <SearchType>3</SearchType>
</RequestSearch>

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

Response Information

Resource Description

Collection of Search
NameDescriptionTypeAdditional information
toptitle

string

None.

title

string

None.

description

string

None.

type

integer

None.

coursename

string

None.

score

decimal number

None.

uri

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "toptitle": "Lektion 5",
    "title": "sample string 1",
    "description": "sample string 2",
    "type": 3,
    "coursename": "sample string 7",
    "score": 9.1,
    "uri": "sample string 10"
  },
  {
    "toptitle": "Lektion 5",
    "title": "sample string 1",
    "description": "sample string 2",
    "type": 3,
    "coursename": "sample string 7",
    "score": 9.1,
    "uri": "sample string 10"
  }
]

text/html

Sample:
[{"toptitle":"Lektion 5","title":"sample string 1","description":"sample string 2","type":3,"coursename":"sample string 7","score":9.1,"uri":"sample string 10"},{"toptitle":"Lektion 5","title":"sample string 1","description":"sample string 2","type":3,"coursename":"sample string 7","score":9.1,"uri":"sample string 10"}]

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: No set method for property 'TopTitle' in type 'LAWSchoolAPI.Models.OtherModels.Search'.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: No set method for property 'TopTitle' in type 'LAWSchoolAPI.Models.OtherModels.Search'.