POST api/HouseCategory/SubmitHouseCategory

后台--增加房产相关分类

Request Information

URI Parameters

None.

Body Parameters

增加房产分类的信息

HouseCategoryDto
NameDescriptionTypeAdditional information
Categoryid

分类记录ID

integer

None.

Chrcategory

名称/内容

string

None.

Styleid

分类 默认值(0) 0房产资讯栏目名称 1售价范围区间 2租金范围区间 3楼盘均价区间 4面积,5户型

HouseCategory

None.

Startmoney

价格区间起始值 默认值(0)

decimal number

None.

Endmoney

价格区间结束值 默认值(0)

decimal number

None.

Isopen

显示/隐藏 0/1 默认值(0)

integer

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: 无法访问已关闭的流。

text/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: 无法访问已关闭的流。

application/xml, text/xml

Sample:
<HouseCategoryDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mh.House.Service.Dto">
  <Categoryid>1</Categoryid>
  <Chrcategory>sample string 2</Chrcategory>
  <Endmoney>4</Endmoney>
  <Isopen>5</Isopen>
  <Startmoney>3</Startmoney>
  <Styleid>TotalPrice</Styleid>
</HouseCategoryDto>

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

Response Information

Resource Description

后台--增加房产相关分类

Object

None.

Response Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: 无法访问已关闭的流。

text/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: 无法访问已关闭的流。

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/" />