POST api/e/ys/AddArticle?memberID={memberID}&enterpriseID={enterpriseID}

期刊文章新建

Request Information

URI Parameters

NameDescriptionTypeAdditional information
memberID

globally unique identifier

Required

enterpriseID

globally unique identifier

Required

Body Parameters

NewsModel
NameDescriptionTypeAdditional information
ID

编号

globally unique identifier

None.

CategoryID

类别编号 必填

globally unique identifier

None.

CName

名称 必填

string

None.

NAuthor

作者 选填

string

None.

Source

来源 选填

string

None.

ReadCount

阅读量

integer

None.

Info

简介

string

None.

Image

图片 必填

string

None.

Thumbnail

缩略图

string

None.

Content

内容 必填 富文本

string

None.

State

状态

boolean

None.

OrderIndex

排序值

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": "623d4ede-74f7-45b1-85c5-d5fc552692ac",
  "CategoryID": "cf2f81a4-52ff-4cc0-9554-f9a8d93dbfc1",
  "CName": "sample string 3",
  "NAuthor": "sample string 4",
  "Source": "sample string 5",
  "ReadCount": 6,
  "Info": "sample string 7",
  "Image": "sample string 8",
  "Thumbnail": "sample string 9",
  "Content": "sample string 10",
  "State": true,
  "OrderIndex": 12
}

application/xml, text/xml

Sample:
<NewsModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LijiyTow.Liji_E.EAPI.Models.E">
  <CName>sample string 3</CName>
  <CategoryID>cf2f81a4-52ff-4cc0-9554-f9a8d93dbfc1</CategoryID>
  <Content>sample string 10</Content>
  <ID>623d4ede-74f7-45b1-85c5-d5fc552692ac</ID>
  <Image>sample string 8</Image>
  <Info>sample string 7</Info>
  <NAuthor>sample string 4</NAuthor>
  <OrderIndex>12</OrderIndex>
  <ReadCount>6</ReadCount>
  <Source>sample string 5</Source>
  <State>true</State>
  <Thumbnail>sample string 9</Thumbnail>
</NewsModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.