POST api/News/Save

Request Information

URI Parameters

None.

Body Parameters

T_News
NameDescriptionTypeAdditional information
Id

integer

None.

newsTitle

string

None.

newsContent

string

None.

newsClassName

string

None.

IsEnable

integer

None.

readCount

integer

None.

AddTime

date

None.

userId

integer

None.

source

string

None.

otherUrl

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "newsTitle": "sample string 2",
  "newsContent": "sample string 3",
  "newsClassName": "sample string 4",
  "IsEnable": 5,
  "readCount": 6,
  "AddTime": "2025-12-29T23:55:17.1763488+08:00",
  "userId": 8,
  "source": "sample string 9",
  "otherUrl": "sample string 10"
}

application/xml, text/xml

Sample:
<T_News xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fsh.Core.Models">
  <AddTime>2025-12-29T23:55:17.1763488+08:00</AddTime>
  <Id>1</Id>
  <IsEnable>5</IsEnable>
  <newsClassName>sample string 4</newsClassName>
  <newsContent>sample string 3</newsContent>
  <newsTitle>sample string 2</newsTitle>
  <otherUrl>sample string 10</otherUrl>
  <readCount>6</readCount>
  <source>sample string 9</source>
  <userId>8</userId>
</T_News>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ApiResult
NameDescriptionTypeAdditional information
code

integer

None.

msg

string

None.

count

integer

None.

data

Object

None.

otherdata

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "code": 1,
  "msg": "sample string 2",
  "count": 1,
  "data": {},
  "otherdata": {}
}

application/xml, text/xml

Sample:
<ApiResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fsh.Core.Models.Other">
  <code>1</code>
  <count>1</count>
  <data />
  <msg>sample string 2</msg>
  <otherdata />
</ApiResult>