POST api/Article/UpdateArticleHitsById

后台--随机增加文章阅读量根据id范围

Request Information

URI Parameters

None.

Body Parameters

随机数范围

ArticleUpdateHitsDto
NameDescriptionTypeAdditional information
StartId

文章id开始

integer

None.

EndId

文章id结束

integer

None.

AddMinNum

随机数开始

integer

None.

AddMaxNum

随机数结束

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:
<ArticleUpdateHitsDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mh.Article.Service.Dto.Article">
  <AddMaxNum>4</AddMaxNum>
  <AddMinNum>3</AddMinNum>
  <EndId>2</EndId>
  <StartId>1</StartId>
</ArticleUpdateHitsDto>

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

Response Information

Resource Description

后台--随机增加文章阅读量根据id范围

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