POST api/Posts/Create
Request Information
URI Parameters
None.
Body Parameters
NewPost| Name | Description | Type | Additional information |
|---|---|---|---|
| UserText | string |
None. |
|
| Content | string |
None. |
|
| PostType | PostType |
None. |
|
| GroupId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"UserText": "sample string 1",
"Content": "sample string 2",
"PostType": 0,
"GroupId": 3
}
application/xml, text/xml
Sample:
<NewPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ethos.Models"> <Content>sample string 2</Content> <GroupId>3</GroupId> <PostType>TEXT</PostType> <UserText>sample string 1</UserText> </NewPost>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
PostResult| Name | Description | Type | Additional information |
|---|---|---|---|
| token | string |
None. |
|
| status | string |
None. |
|
| message | string |
None. |
|
| PostId | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"token": "sample string 1",
"status": "sample string 2",
"message": "sample string 3",
"PostId": 4
}
application/xml, text/xml
Sample:
<Status.PostResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ethos.Models"> <PostId>4</PostId> <message>sample string 3</message> <status>sample string 2</status> <token>sample string 1</token> </Status.PostResult>