POST api/article

Request Information

URI Parameters

None.

Body Parameters

ArticleModel
NameDescriptionTypeAdditional information
ArticleId

integer

None.

SectionId

integer

None.

Section

string

None.

Name

string

None.

Header

string

None.

PublicationDate

date

None.

Content

string

None.

Author

string

None.

LinkedUrl

string

None.

Email

string

None.

Status

string

None.

Order

integer

None.

Active

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "ArticleId": 1,
  "SectionId": 2,
  "Section": "sample string 3",
  "Name": "sample string 4",
  "Header": "sample string 5",
  "PublicationDate": "2024-12-14T22:58:57.0407305+00:00",
  "Content": "sample string 7",
  "Author": "sample string 8",
  "LinkedUrl": "sample string 9",
  "Email": "sample string 10",
  "Status": "sample string 11",
  "Order": 12,
  "Active": true
}

application/xml, text/xml

Sample:
<ArticleModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ALTAMBS.Business.Entities.Models">
  <Active>true</Active>
  <ArticleId>1</ArticleId>
  <Author>sample string 8</Author>
  <Content>sample string 7</Content>
  <Email>sample string 10</Email>
  <Header>sample string 5</Header>
  <LinkedUrl>sample string 9</LinkedUrl>
  <Name>sample string 4</Name>
  <Order>12</Order>
  <PublicationDate>2024-12-14T22:58:57.0407305+00:00</PublicationDate>
  <Section>sample string 3</Section>
  <SectionId>2</SectionId>
  <Status>sample string 11</Status>
</ArticleModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.