GET api/posts/{postId}?lang={lang}&amp={amp}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
postId

integer

Required

lang

string

None.

amp

boolean

Default value is False

Body Parameters

None.

Response Information

Resource Description

ResponseResultOfPostDetailInfo
NameDescriptionTypeAdditional information
Data

PostDetailInfo

None.

Message

string

None.

Status

integer

None.

Page

PageInfo

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": {
    "CreateTime": "2024-05-24T15:36:40.4379443+08:00",
    "PostTime": "2024-05-24T15:36:40.4379443+08:00",
    "ModifyTime": "2024-05-24T15:36:40.4379443+08:00",
    "Content": "sample string 4",
    "Ranks": 5.0,
    "Category": "sample string 6",
    "Star": "sample string 7",
    "Description": "sample string 8",
    "ImgLists": [
      "sample string 1",
      "sample string 2"
    ],
    "TextContent": "sample string 9",
    "CrumbLists": [
      {
        "Id": 1,
        "Url": "sample string 2",
        "Name": "sample string 3",
        "TagName": "sample string 4"
      },
      {
        "Id": 1,
        "Url": "sample string 2",
        "Name": "sample string 3",
        "TagName": "sample string 4"
      }
    ],
    "MapLists": [
      {
        "Longitude": 1.1,
        "Latitude": 2.1,
        "Content": "sample string 3",
        "Content_CHS": "sample string 4",
        "Content_CHT": "sample string 5",
        "ContactNo": "sample string 6",
        "Website": "sample string 7",
        "OpenTime": "sample string 8"
      },
      {
        "Longitude": 1.1,
        "Latitude": 2.1,
        "Content": "sample string 3",
        "Content_CHS": "sample string 4",
        "Content_CHT": "sample string 5",
        "ContactNo": "sample string 6",
        "Website": "sample string 7",
        "OpenTime": "sample string 8"
      }
    ],
    "TagName": "sample string 10",
    "PostId": 11,
    "Title": "sample string 12",
    "ShortContent": "sample string 13",
    "TagLists": [
      {
        "Type": "sample string 1",
        "Id": 2,
        "TagName": "sample string 3",
        "Name": "sample string 4",
        "Color": "sample string 5",
        "Url": "sample string 6"
      },
      {
        "Type": "sample string 1",
        "Id": 2,
        "TagName": "sample string 3",
        "Name": "sample string 4",
        "Color": "sample string 5",
        "Url": "sample string 6"
      }
    ],
    "LocationLists": [
      {
        "Type": "sample string 1",
        "Id": 2,
        "TagName": "sample string 3",
        "Name": "sample string 4",
        "Color": "sample string 5",
        "Url": "sample string 6"
      },
      {
        "Type": "sample string 1",
        "Id": 2,
        "TagName": "sample string 3",
        "Name": "sample string 4",
        "Color": "sample string 5",
        "Url": "sample string 6"
      }
    ],
    "Views": "sample string 14",
    "Author": {
      "Author": "sample string 1",
      "IconUrl": "sample string 2",
      "Name": "sample string 3"
    },
    "Editor": {
      "Author": "sample string 1",
      "IconUrl": "sample string 2",
      "Name": "sample string 3"
    },
    "PostDate": "sample string 15",
    "IconUrl": "sample string 16",
    "BannerUrl": "sample string 17",
    "FbUrl": "sample string 18",
    "Url": "sample string 19",
    "KeyWords": "sample string 20"
  },
  "Message": "sample string 1",
  "Status": 2,
  "Page": {
    "PageIndex": 1,
    "PageTotal": 2,
    "DataTotal": 3,
    "PostSize": 4,
    "TagSize": 5,
    "ThemeSize": 6
  }
}

application/xml, text/xml

Sample:
<ResponseResultOfPostDetailInfoGyUkcEtJ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BlogAdmin.Models">
  <Data>
    <Author>
      <Author>sample string 1</Author>
      <IconUrl>sample string 2</IconUrl>
      <Name>sample string 3</Name>
    </Author>
    <BannerUrl>sample string 17</BannerUrl>
    <Editor>
      <Author>sample string 1</Author>
      <IconUrl>sample string 2</IconUrl>
      <Name>sample string 3</Name>
    </Editor>
    <FbUrl>sample string 18</FbUrl>
    <IconUrl>sample string 16</IconUrl>
    <KeyWords>sample string 20</KeyWords>
    <LocationLists>
      <TagInfo>
        <Color>sample string 5</Color>
        <Id>2</Id>
        <Name>sample string 4</Name>
        <TagName>sample string 3</TagName>
        <Type>sample string 1</Type>
        <Url>sample string 6</Url>
      </TagInfo>
      <TagInfo>
        <Color>sample string 5</Color>
        <Id>2</Id>
        <Name>sample string 4</Name>
        <TagName>sample string 3</TagName>
        <Type>sample string 1</Type>
        <Url>sample string 6</Url>
      </TagInfo>
    </LocationLists>
    <PostDate>sample string 15</PostDate>
    <PostId>11</PostId>
    <ShortContent>sample string 13</ShortContent>
    <TagLists>
      <TagInfo>
        <Color>sample string 5</Color>
        <Id>2</Id>
        <Name>sample string 4</Name>
        <TagName>sample string 3</TagName>
        <Type>sample string 1</Type>
        <Url>sample string 6</Url>
      </TagInfo>
      <TagInfo>
        <Color>sample string 5</Color>
        <Id>2</Id>
        <Name>sample string 4</Name>
        <TagName>sample string 3</TagName>
        <Type>sample string 1</Type>
        <Url>sample string 6</Url>
      </TagInfo>
    </TagLists>
    <TagName>sample string 10</TagName>
    <Title>sample string 12</Title>
    <Url>sample string 19</Url>
    <Views>sample string 14</Views>
    <Category>sample string 6</Category>
    <Content>sample string 4</Content>
    <CreateTime>2024-05-24T15:36:40.4379443+08:00</CreateTime>
    <CrumbLists>
      <CrumbInfo>
        <Id>1</Id>
        <Name>sample string 3</Name>
        <TagName>sample string 4</TagName>
        <Url>sample string 2</Url>
      </CrumbInfo>
      <CrumbInfo>
        <Id>1</Id>
        <Name>sample string 3</Name>
        <TagName>sample string 4</TagName>
        <Url>sample string 2</Url>
      </CrumbInfo>
    </CrumbLists>
    <Description>sample string 8</Description>
    <ImgLists xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </ImgLists>
    <MapLists>
      <PostMapInfo>
        <ContactNo>sample string 6</ContactNo>
        <Content>sample string 3</Content>
        <Content_CHS>sample string 4</Content_CHS>
        <Content_CHT>sample string 5</Content_CHT>
        <Latitude>2.1</Latitude>
        <Longitude>1.1</Longitude>
        <OpenTime>sample string 8</OpenTime>
        <Website>sample string 7</Website>
      </PostMapInfo>
      <PostMapInfo>
        <ContactNo>sample string 6</ContactNo>
        <Content>sample string 3</Content>
        <Content_CHS>sample string 4</Content_CHS>
        <Content_CHT>sample string 5</Content_CHT>
        <Latitude>2.1</Latitude>
        <Longitude>1.1</Longitude>
        <OpenTime>sample string 8</OpenTime>
        <Website>sample string 7</Website>
      </PostMapInfo>
    </MapLists>
    <ModifyTime>2024-05-24T15:36:40.4379443+08:00</ModifyTime>
    <PostTime>2024-05-24T15:36:40.4379443+08:00</PostTime>
    <Ranks>5</Ranks>
    <Star>sample string 7</Star>
    <TextContent>sample string 9</TextContent>
  </Data>
  <Message>sample string 1</Message>
  <Page>
    <DataTotal>3</DataTotal>
    <PageIndex>1</PageIndex>
    <PageTotal>2</PageTotal>
    <PostSize>4</PostSize>
    <TagSize>5</TagSize>
    <ThemeSize>6</ThemeSize>
  </Page>
  <Status>2</Status>
</ResponseResultOfPostDetailInfoGyUkcEtJ>