POST api/GetHomeNewsDetails
Request Information
URI Parameters
None.
Body Parameters
NewsModel| Name | Description | Type | Additional information |
|---|---|---|---|
| NewsId | integer |
None. |
|
| CategoryId | integer |
None. |
|
| Category | string |
None. |
|
| Title | string |
None. |
|
| Description | string |
None. |
|
| UserId | integer |
None. |
|
| UserName | string |
None. |
|
| DateShow | string |
None. |
|
| NoComment | integer |
None. |
|
| NoLike | integer |
None. |
|
| IsLike | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"NewsId": 1,
"CategoryId": 2,
"Category": "sample string 3",
"Title": "sample string 4",
"Description": "sample string 5",
"UserId": 6,
"UserName": "sample string 7",
"DateShow": "sample string 8",
"NoComment": 9,
"NoLike": 10,
"IsLike": 11
}
application/xml, text/xml
Sample:
<NewsModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DecstopAPI.Models"> <Category>sample string 3</Category> <CategoryId>2</CategoryId> <DateShow>sample string 8</DateShow> <Description>sample string 5</Description> <IsLike>11</IsLike> <NewsId>1</NewsId> <NoComment>9</NoComment> <NoLike>10</NoLike> <Title>sample string 4</Title> <UserId>6</UserId> <UserName>sample string 7</UserName> </NewsModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
NewsModel| Name | Description | Type | Additional information |
|---|---|---|---|
| NewsId | integer |
None. |
|
| CategoryId | integer |
None. |
|
| Category | string |
None. |
|
| Title | string |
None. |
|
| Description | string |
None. |
|
| UserId | integer |
None. |
|
| UserName | string |
None. |
|
| DateShow | string |
None. |
|
| NoComment | integer |
None. |
|
| NoLike | integer |
None. |
|
| IsLike | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"NewsId": 1,
"CategoryId": 2,
"Category": "sample string 3",
"Title": "sample string 4",
"Description": "sample string 5",
"UserId": 6,
"UserName": "sample string 7",
"DateShow": "sample string 8",
"NoComment": 9,
"NoLike": 10,
"IsLike": 11
}
application/xml, text/xml
Sample:
<NewsModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DecstopAPI.Models"> <Category>sample string 3</Category> <CategoryId>2</CategoryId> <DateShow>sample string 8</DateShow> <Description>sample string 5</Description> <IsLike>11</IsLike> <NewsId>1</NewsId> <NoComment>9</NoComment> <NoLike>10</NoLike> <Title>sample string 4</Title> <UserId>6</UserId> <UserName>sample string 7</UserName> </NewsModel>