POST api/article
POST article
Request Information
URI Parameters
None.
Body Parameters
ArticleName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
Content | string |
None. |
|
Title | string |
String length: inclusive between 0 and 300 |
|
Status | string |
String length: inclusive between 0 and 50 |
|
ImgUrl | string |
String length: inclusive between 0 and 1000 |
|
ImgHeaderUrl | string |
String length: inclusive between 0 and 1000 |
|
PreviewText | string |
String length: inclusive between 0 and 200 |
|
Creation | date |
None. |
|
Pubished | date |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": 1, "Content": "sample string 2", "Title": "sample string 3", "Status": "sample string 4", "ImgUrl": "sample string 5", "ImgHeaderUrl": "sample string 6", "PreviewText": "sample string 7", "Creation": "2024-12-23T06:21:42.9818114-04:00", "Pubished": "2024-12-23T06:21:42.9818114-04:00" }
application/xml, text/xml
Sample:
<Article xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cms.Core.Entities"> <Content>sample string 2</Content> <Creation>2024-12-23T06:21:42.9818114-04:00</Creation> <Id>1</Id> <ImgHeaderUrl>sample string 6</ImgHeaderUrl> <ImgUrl>sample string 5</ImgUrl> <PreviewText>sample string 7</PreviewText> <Pubished>2024-12-23T06:21:42.9818114-04:00</Pubished> <Status>sample string 4</Status> <Title>sample string 3</Title> </Article>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.