POST api/ng/articles/articlesubmit

Request Information

URI Parameters

None.

Body Parameters

NgArticleModel
NameDescriptionTypeAdditional information
pageID

integer

None.

articleUrl

string

None.

title

string

None.

subTitle

string

None.

description

string

None.

content

string

None.

datePublished

string

None.

yearPublished

integer

None.

monthPublished

integer

None.

dayPublished

integer

None.

isPublished

boolean

None.

authorName

string

None.

authorUrl

string

None.

authorImageUrl

string

None.

authorAbout

string

None.

categoryId

integer

None.

category

string

None.

oAuthorID

string

None.

pageGroupUrl

string

None.

headerImageUrl

string

None.

blogImageUrl

string

None.

commentCount

integer

None.

commentCountRoot

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "pageID": 1,
  "articleUrl": "sample string 2",
  "title": "sample string 3",
  "subTitle": "sample string 4",
  "description": "sample string 5",
  "content": "sample string 6",
  "datePublished": "sample string 7",
  "yearPublished": 8,
  "monthPublished": 9,
  "dayPublished": 10,
  "isPublished": true,
  "authorName": "sample string 12",
  "authorUrl": "sample string 13",
  "authorImageUrl": "sample string 14",
  "authorAbout": "sample string 15",
  "categoryId": 16,
  "category": "sample string 17",
  "oAuthorID": "sample string 18",
  "pageGroupUrl": "sample string 19",
  "headerImageUrl": "sample string 20",
  "blogImageUrl": "sample string 21",
  "commentCount": 22,
  "commentCountRoot": 23
}

application/xml, text/xml

Sample:
<NgArticleModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SoulSeasons2017.Models.Angular">
  <articleUrl>sample string 2</articleUrl>
  <authorAbout>sample string 15</authorAbout>
  <authorImageUrl>sample string 14</authorImageUrl>
  <authorName>sample string 12</authorName>
  <authorUrl>sample string 13</authorUrl>
  <blogImageUrl>sample string 21</blogImageUrl>
  <category>sample string 17</category>
  <categoryId>16</categoryId>
  <commentCount>22</commentCount>
  <commentCountRoot>23</commentCountRoot>
  <content>sample string 6</content>
  <datePublished>sample string 7</datePublished>
  <dayPublished>10</dayPublished>
  <description>sample string 5</description>
  <headerImageUrl>sample string 20</headerImageUrl>
  <isPublished>true</isPublished>
  <monthPublished>9</monthPublished>
  <oAuthorID>sample string 18</oAuthorID>
  <pageGroupUrl>sample string 19</pageGroupUrl>
  <pageID>1</pageID>
  <subTitle>sample string 4</subTitle>
  <title>sample string 3</title>
  <yearPublished>8</yearPublished>
</NgArticleModel>

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

Response Information

Resource Description

NgArticleResultModel
NameDescriptionTypeAdditional information
IsSuccess

boolean

None.

ErrorType

CommentSubmitError

None.

pageID

integer

None.

articleUrl

string

None.

Response Formats

application/json, text/json

Sample:
{
  "IsSuccess": true,
  "ErrorType": 0,
  "pageID": 2,
  "articleUrl": "sample string 3"
}

application/xml, text/xml

Sample:
<NgArticleResultModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SoulSeasons2017.Models.Angular">
  <ErrorType>NoError</ErrorType>
  <IsSuccess>true</IsSuccess>
  <articleUrl>sample string 3</articleUrl>
  <pageID>2</pageID>
</NgArticleResultModel>