POST api/bo/articles

Create Article

Request Information

URI Parameters

None.

Body Parameters

m_article_create
NameDescriptionTypeAdditional information
Title

string

Required

String length: inclusive between 0 and 100

Description

string

None.

PreviewImg

string

None.

ArticleContent

Collection of m_article_content

None.

ArticleCategory

Collection of m_article_category

None.

Request Formats

application/json, text/json

Sample:
{
  "Title": "sample string 1",
  "Description": "sample string 2",
  "PreviewImg": "sample string 3",
  "ArticleContent": [
    {
      "Content": "sample string 1",
      "ContentType": "sample string 2"
    },
    {
      "Content": "sample string 1",
      "ContentType": "sample string 2"
    }
  ],
  "ArticleCategory": [
    {
      "ArtCateId": 1
    },
    {
      "ArtCateId": 1
    }
  ]
}

application/xml, text/xml

Sample:
<m_article_create xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KFA.Modules.Models.Backoffice">
  <ArticleCategory>
    <m_article_category>
      <ArtCateId>1</ArtCateId>
    </m_article_category>
    <m_article_category>
      <ArtCateId>1</ArtCateId>
    </m_article_category>
  </ArticleCategory>
  <ArticleContent>
    <m_article_content>
      <Content>sample string 1</Content>
      <ContentType>sample string 2</ContentType>
    </m_article_content>
    <m_article_content>
      <Content>sample string 1</Content>
      <ContentType>sample string 2</ContentType>
    </m_article_content>
  </ArticleContent>
  <Description>sample string 2</Description>
  <PreviewImg>sample string 3</PreviewImg>
  <Title>sample string 1</Title>
</m_article_create>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.