GET api/Post/GetPostDetail/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

post
NameDescriptionTypeAdditional 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-26T20:54:50.6553279+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-26T20:54:50.6553279+08:00</ctime>
  <knot>6</knot>
  <title>sample string 2</title>
  <userID>4</userID>
</post>