POST api/Post/SavePost
Request Information
URI Parameters
None.
Body Parameters
postName | Description | Type | Additional information |
---|---|---|---|
ID | integer |
None. |
|
title | string |
None. |
|
content | string |
None. |
|
userID | integer |
None. |
|
ctime | date |
None. |
|
knot | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "ID": 1, "title": "sample string 2", "content": "sample string 3", "userID": 4, "ctime": "2023-09-26T19:01:45.9942077+08:00", "knot": 6 }
application/xml, text/xml
Sample:
<post xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/webApi.Models"> <ID>1</ID> <content>sample string 3</content> <ctime>2023-09-26T19:01:45.9942077+08:00</ctime> <knot>6</knot> <title>sample string 2</title> <userID>4</userID> </post>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
integerResponse Formats
application/json, text/json
Sample:
1
application/xml, text/xml
Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>