POST api/Articles

This call will post an article and return the posted article with all its properties.

Request Information

URI Parameters

None.

Body Parameters

ArticleEntity
NameDescriptionTypeAdditional information
Id

string

None.

Title

string

None.

Body

string

None.

PicUrl

string

None.

ViewsNumber

integer

None.

LikesNumber

integer

None.

DateCreated

string

None.

Category

string

None.

Status

string

None.

Custom1

string

None.

Custom2

string

None.

Custom3

string

None.

Custom4

string

None.

Custom5

string

None.

PartitionKey

string

None.

RowKey

string

None.

Timestamp

date

None.

ETag

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "sample string 1",
  "Title": "sample string 2",
  "Body": "sample string 3",
  "PicUrl": "sample string 4",
  "ViewsNumber": 5,
  "LikesNumber": 6,
  "DateCreated": "sample string 7",
  "Category": "sample string 8",
  "Status": "sample string 9",
  "Custom1": "sample string 10",
  "Custom2": "sample string 11",
  "Custom3": "sample string 12",
  "Custom4": "sample string 13",
  "Custom5": "sample string 14",
  "PartitionKey": "sample string 15",
  "RowKey": "sample string 16",
  "Timestamp": "2020-12-11T19:54:28.9662146+00:00",
  "ETag": "sample string 18"
}

application/xml, text/xml

Sample:
<ArticleEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/mekonecampusapi.Models">
  <ETag xmlns="http://schemas.datacontract.org/2004/07/Microsoft.WindowsAzure.Storage.Table">sample string 18</ETag>
  <PartitionKey xmlns="http://schemas.datacontract.org/2004/07/Microsoft.WindowsAzure.Storage.Table">sample string 15</PartitionKey>
  <RowKey xmlns="http://schemas.datacontract.org/2004/07/Microsoft.WindowsAzure.Storage.Table">sample string 16</RowKey>
  <Timestamp xmlns:d2p1="http://schemas.datacontract.org/2004/07/System" xmlns="http://schemas.datacontract.org/2004/07/Microsoft.WindowsAzure.Storage.Table">
    <d2p1:DateTime>2020-12-11T19:54:28.9662146Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </Timestamp>
  <Body>sample string 3</Body>
  <Category>sample string 8</Category>
  <Custom1>sample string 10</Custom1>
  <Custom2>sample string 11</Custom2>
  <Custom3>sample string 12</Custom3>
  <Custom4>sample string 13</Custom4>
  <Custom5>sample string 14</Custom5>
  <DateCreated>sample string 7</DateCreated>
  <Id>sample string 1</Id>
  <LikesNumber>6</LikesNumber>
  <PicUrl>sample string 4</PicUrl>
  <Status>sample string 9</Status>
  <Title>sample string 2</Title>
  <ViewsNumber>5</ViewsNumber>
</ArticleEntity>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ArticleEntity
NameDescriptionTypeAdditional information
Id

string

None.

Title

string

None.

Body

string

None.

PicUrl

string

None.

ViewsNumber

integer

None.

LikesNumber

integer

None.

DateCreated

string

None.

Category

string

None.

Status

string

None.

Custom1

string

None.

Custom2

string

None.

Custom3

string

None.

Custom4

string

None.

Custom5

string

None.

PartitionKey

string

None.

RowKey

string

None.

Timestamp

date

None.

ETag

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": "sample string 1",
  "Title": "sample string 2",
  "Body": "sample string 3",
  "PicUrl": "sample string 4",
  "ViewsNumber": 5,
  "LikesNumber": 6,
  "DateCreated": "sample string 7",
  "Category": "sample string 8",
  "Status": "sample string 9",
  "Custom1": "sample string 10",
  "Custom2": "sample string 11",
  "Custom3": "sample string 12",
  "Custom4": "sample string 13",
  "Custom5": "sample string 14",
  "PartitionKey": "sample string 15",
  "RowKey": "sample string 16",
  "Timestamp": "2020-12-11T19:54:28.9974622+00:00",
  "ETag": "sample string 18"
}

application/xml, text/xml

Sample:
<ArticleEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/mekonecampusapi.Models">
  <ETag xmlns="http://schemas.datacontract.org/2004/07/Microsoft.WindowsAzure.Storage.Table">sample string 18</ETag>
  <PartitionKey xmlns="http://schemas.datacontract.org/2004/07/Microsoft.WindowsAzure.Storage.Table">sample string 15</PartitionKey>
  <RowKey xmlns="http://schemas.datacontract.org/2004/07/Microsoft.WindowsAzure.Storage.Table">sample string 16</RowKey>
  <Timestamp xmlns:d2p1="http://schemas.datacontract.org/2004/07/System" xmlns="http://schemas.datacontract.org/2004/07/Microsoft.WindowsAzure.Storage.Table">
    <d2p1:DateTime>2020-12-11T19:54:28.9974622Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </Timestamp>
  <Body>sample string 3</Body>
  <Category>sample string 8</Category>
  <Custom1>sample string 10</Custom1>
  <Custom2>sample string 11</Custom2>
  <Custom3>sample string 12</Custom3>
  <Custom4>sample string 13</Custom4>
  <Custom5>sample string 14</Custom5>
  <DateCreated>sample string 7</DateCreated>
  <Id>sample string 1</Id>
  <LikesNumber>6</LikesNumber>
  <PicUrl>sample string 4</PicUrl>
  <Status>sample string 9</Status>
  <Title>sample string 2</Title>
  <ViewsNumber>5</ViewsNumber>
</ArticleEntity>