POST api/posts
Request Information
URI Parameters
None.
Body Parameters
SearchInfoV2| Name | Description | Type | Additional information |
|---|---|---|---|
| Lang | string |
None. |
|
| KeyWord | string |
None. |
|
| Type | integer |
None. |
|
| Location | BaseObject |
None. |
|
| Tag | BaseObject |
None. |
|
| SubType | BaseObject |
None. |
|
| Author | BaseObject |
None. |
|
| SearchPeriod | integer |
None. |
|
| SortBy | integer |
None. |
|
| Page | PageInfo |
None. |
Request Formats
application/json, text/json
Sample:
{
"Lang": "sample string 1",
"KeyWord": "sample string 2",
"Type": 3,
"Location": {
"Id": 1,
"Name": "sample string 2"
},
"Tag": {
"Id": 1,
"Name": "sample string 2"
},
"SubType": {
"Id": 1,
"Name": "sample string 2"
},
"Author": {
"Id": 1,
"Name": "sample string 2"
},
"SearchPeriod": 4,
"SortBy": 5,
"Page": {
"PageIndex": 1,
"PageTotal": 2,
"DataTotal": 3,
"PostSize": 4,
"TagSize": 5,
"ThemeSize": 6
}
}
application/xml, text/xml
Sample:
<SearchInfoV2 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BlogAdmin.Models">
<Author>
<Id>1</Id>
<Name>sample string 2</Name>
</Author>
<KeyWord>sample string 2</KeyWord>
<Lang>sample string 1</Lang>
<Location>
<Id>1</Id>
<Name>sample string 2</Name>
</Location>
<Page>
<DataTotal>3</DataTotal>
<PageIndex>1</PageIndex>
<PageTotal>2</PageTotal>
<PostSize>4</PostSize>
<TagSize>5</TagSize>
<ThemeSize>6</ThemeSize>
</Page>
<SearchPeriod>4</SearchPeriod>
<SortBy>5</SortBy>
<SubType>
<Id>1</Id>
<Name>sample string 2</Name>
</SubType>
<Tag>
<Id>1</Id>
<Name>sample string 2</Name>
</Tag>
<Type>3</Type>
</SearchInfoV2>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseResultOfPostResultInfo| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | PostResultInfo |
None. |
|
| Message | string |
None. |
|
| Status | integer |
None. |
|
| Page | PageInfo |
None. |
Response Formats
application/json, text/json
Sample:
{
"Data": {
"PostLists": [
{
"TagName": "sample string 1",
"PostId": 2,
"Title": "sample string 3",
"ShortContent": "sample string 4",
"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 5",
"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 6",
"IconUrl": "sample string 7",
"BannerUrl": "sample string 8",
"FbUrl": "sample string 9",
"Url": "sample string 10",
"KeyWords": "sample string 11"
},
{
"TagName": "sample string 1",
"PostId": 2,
"Title": "sample string 3",
"ShortContent": "sample string 4",
"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 5",
"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 6",
"IconUrl": "sample string 7",
"BannerUrl": "sample string 8",
"FbUrl": "sample string 9",
"Url": "sample string 10",
"KeyWords": "sample string 11"
}
],
"Page": {
"PageIndex": 1,
"PageTotal": 2,
"DataTotal": 3,
"PostSize": 4,
"TagSize": 5,
"ThemeSize": 6
}
},
"Message": "sample string 1",
"Status": 2,
"Page": {
"PageIndex": 1,
"PageTotal": 2,
"DataTotal": 3,
"PostSize": 4,
"TagSize": 5,
"ThemeSize": 6
}
}
application/xml, text/xml
Sample:
<ResponseResultOfPostResultInfoGyUkcEtJ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BlogAdmin.Models">
<Data>
<Page>
<DataTotal>3</DataTotal>
<PageIndex>1</PageIndex>
<PageTotal>2</PageTotal>
<PostSize>4</PostSize>
<TagSize>5</TagSize>
<ThemeSize>6</ThemeSize>
</Page>
<PostLists>
<PostInfo>
<Author>
<Author>sample string 1</Author>
<IconUrl>sample string 2</IconUrl>
<Name>sample string 3</Name>
</Author>
<BannerUrl>sample string 8</BannerUrl>
<Editor>
<Author>sample string 1</Author>
<IconUrl>sample string 2</IconUrl>
<Name>sample string 3</Name>
</Editor>
<FbUrl>sample string 9</FbUrl>
<IconUrl>sample string 7</IconUrl>
<KeyWords>sample string 11</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 6</PostDate>
<PostId>2</PostId>
<ShortContent>sample string 4</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 1</TagName>
<Title>sample string 3</Title>
<Url>sample string 10</Url>
<Views>sample string 5</Views>
</PostInfo>
<PostInfo>
<Author>
<Author>sample string 1</Author>
<IconUrl>sample string 2</IconUrl>
<Name>sample string 3</Name>
</Author>
<BannerUrl>sample string 8</BannerUrl>
<Editor>
<Author>sample string 1</Author>
<IconUrl>sample string 2</IconUrl>
<Name>sample string 3</Name>
</Editor>
<FbUrl>sample string 9</FbUrl>
<IconUrl>sample string 7</IconUrl>
<KeyWords>sample string 11</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 6</PostDate>
<PostId>2</PostId>
<ShortContent>sample string 4</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 1</TagName>
<Title>sample string 3</Title>
<Url>sample string 10</Url>
<Views>sample string 5</Views>
</PostInfo>
</PostLists>
</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>
</ResponseResultOfPostResultInfoGyUkcEtJ>