POST api/Forum/postForum

保存信息

Request Information

URI Parameters

None.

Body Parameters

data_Forum
NameDescriptionTypeAdditional information
ForumId

integer

None.

UserId

integer

None.

CompanyId

integer

None.

Title

string

None.

ThemeId

贴子主题

integer

None.

Theme

string

None.

Type

/发布的类型:3:视频2:图片1:文字

integer

None.

TypeId

供/求

integer

None.

TypeText

string

None.

Content

string

None.

Quantity

string

None.

RequirementType

integer

None.

PaymentType

integer

None.

Contact

string

None.

EndTime

date

None.

WeChat

string

None.

Phone

string

None.

Files

string

None.

Follows

integer

None.

Zans

integer

None.

Views

integer

None.

Status

integer

None.

Sort

integer

None.

isUpdateUser

boolean

None.

UserRole

integer

None.

UpdateTime

date

None.

CreateTime

date

None.

Request Formats

application/json, text/json

Sample:
{
  "ForumId": 1,
  "UserId": 2,
  "CompanyId": 3,
  "Title": "sample string 4",
  "ThemeId": 5,
  "Theme": "sample string 6",
  "Type": 7,
  "TypeId": 8,
  "TypeText": "sample string 9",
  "Content": "sample string 10",
  "Quantity": "sample string 11",
  "RequirementType": 12,
  "PaymentType": 13,
  "Contact": "sample string 14",
  "EndTime": "2024-11-25 15:57:28",
  "WeChat": "sample string 15",
  "Phone": "sample string 16",
  "Files": "sample string 17",
  "Follows": 18,
  "Zans": 19,
  "Views": 20,
  "Status": 21,
  "Sort": 22,
  "isUpdateUser": true,
  "UserRole": 24,
  "UpdateTime": "2024-11-25 15:57:28",
  "CreateTime": "2024-11-25 15:57:28"
}

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

Response Information

Resource Description

保存信息

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.