POST api/admin/news/{uid}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
uid

integer

Required

Body Parameters

CreateNewsDTO
NameDescriptionTypeAdditional information
news_title

string

None.

news_content

string

None.

push

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "news_title": "sample string 1",
  "news_content": "sample string 2",
  "push": true
}

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.