POST Post/SimilarPost

Request Information

URI Parameters

None.

Body Parameters

PostList
NameDescriptionTypeAdditional information
PostId

integer

None.

PostName

string

None.

Description

string

None.

Image

string

None.

PostDate

date

None.

AuthorName

string

None.

CategoryName

string

None.

PostUrl

string

None.

Request Formats

application/json, text/json

Sample:
{
  "PostId": 1,
  "PostName": "sample string 2",
  "Description": "sample string 3",
  "Image": "sample string 4",
  "PostDate": "2018-12-11T01:42:58.240885-05:00",
  "AuthorName": "sample string 5",
  "CategoryName": "sample string 6",
  "PostUrl": "sample string 7"
}

application/xml, text/xml

Sample:
<PostList xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IdenCard.Api.Models">
  <AuthorName>sample string 5</AuthorName>
  <CategoryName>sample string 6</CategoryName>
  <Description>sample string 3</Description>
  <Image>sample string 4</Image>
  <PostDate>2018-12-11T01:42:58.240885-05:00</PostDate>
  <PostId>1</PostId>
  <PostName>sample string 2</PostName>
  <PostUrl>sample string 7</PostUrl>
</PostList>

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

Response Information

Resource Description

Collection of PostList
NameDescriptionTypeAdditional information
PostId

integer

None.

PostName

string

None.

Description

string

None.

Image

string

None.

PostDate

date

None.

AuthorName

string

None.

CategoryName

string

None.

PostUrl

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "PostId": 1,
    "PostName": "sample string 2",
    "Description": "sample string 3",
    "Image": "sample string 4",
    "PostDate": "2018-12-11T01:42:58.240885-05:00",
    "AuthorName": "sample string 5",
    "CategoryName": "sample string 6",
    "PostUrl": "sample string 7"
  },
  {
    "PostId": 1,
    "PostName": "sample string 2",
    "Description": "sample string 3",
    "Image": "sample string 4",
    "PostDate": "2018-12-11T01:42:58.240885-05:00",
    "AuthorName": "sample string 5",
    "CategoryName": "sample string 6",
    "PostUrl": "sample string 7"
  }
]

application/xml, text/xml

Sample:
<ArrayOfPostList xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IdenCard.Api.Models">
  <PostList>
    <AuthorName>sample string 5</AuthorName>
    <CategoryName>sample string 6</CategoryName>
    <Description>sample string 3</Description>
    <Image>sample string 4</Image>
    <PostDate>2018-12-11T01:42:58.240885-05:00</PostDate>
    <PostId>1</PostId>
    <PostName>sample string 2</PostName>
    <PostUrl>sample string 7</PostUrl>
  </PostList>
  <PostList>
    <AuthorName>sample string 5</AuthorName>
    <CategoryName>sample string 6</CategoryName>
    <Description>sample string 3</Description>
    <Image>sample string 4</Image>
    <PostDate>2018-12-11T01:42:58.240885-05:00</PostDate>
    <PostId>1</PostId>
    <PostName>sample string 2</PostName>
    <PostUrl>sample string 7</PostUrl>
  </PostList>
</ArrayOfPostList>