POST api/PostApi/SavePost

Request Information

URI Parameters

None.

Body Parameters

Post
NameDescriptionTypeAdditional information
post_id

string

None.

user_id

string

None.

post_imgurl

string

None.

post_heading

string

None.

post_datetime

string

None.

status

string

None.

description

string

None.

Request Formats

application/json, text/json

Sample:
{
  "post_id": "sample string 1",
  "user_id": "sample string 2",
  "post_imgurl": "sample string 3",
  "post_heading": "sample string 4",
  "post_datetime": "sample string 5",
  "status": "sample string 6",
  "description": "sample string 7"
}

application/xml, text/xml

Sample:
<Post xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tripwoman.Models">
  <description>sample string 7</description>
  <post_datetime>sample string 5</post_datetime>
  <post_heading>sample string 4</post_heading>
  <post_id>sample string 1</post_id>
  <post_imgurl>sample string 3</post_imgurl>
  <status>sample string 6</status>
  <user_id>sample string 2</user_id>
</Post>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.