GET api/Post/GetPostList?knot={knot}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
knot | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of postName | Description | Type | Additional information |
---|---|---|---|
ID | integer |
None. |
|
title | string |
None. |
|
content | string |
None. |
|
userID | integer |
None. |
|
ctime | date |
None. |
|
knot | integer |
None. |
Response Formats
application/json, text/json
Sample:
[ { "ID": 1, "title": "sample string 2", "content": "sample string 3", "userID": 4, "ctime": "2023-09-26T19:01:46.088927+08:00", "knot": 6 }, { "ID": 1, "title": "sample string 2", "content": "sample string 3", "userID": 4, "ctime": "2023-09-26T19:01:46.088927+08:00", "knot": 6 } ]
application/xml, text/xml
Sample:
<ArrayOfpost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/webApi.Models"> <post> <ID>1</ID> <content>sample string 3</content> <ctime>2023-09-26T19:01:46.088927+08:00</ctime> <knot>6</knot> <title>sample string 2</title> <userID>4</userID> </post> <post> <ID>1</ID> <content>sample string 3</content> <ctime>2023-09-26T19:01:46.088927+08:00</ctime> <knot>6</knot> <title>sample string 2</title> <userID>4</userID> </post> </ArrayOfpost>