GET api/News/Detail?id={id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
NewsDetailModel| Name | Description | Type | Additional information |
|---|---|---|---|
| TypeId | integer |
None. |
|
| Id | integer |
None. |
|
| Title | string |
None. |
|
| Contents | string |
None. |
|
| ImageUrl | string |
None. |
|
| Summary | string |
None. |
|
| IsHot | boolean |
None. |
|
| TotalViewd | integer |
None. |
|
| DateCreate | date |
None. |
|
| EmployeeEmailCreate | string |
None. |
|
| EmployeeNameCreate | string |
None. |
|
| DateModify | date |
None. |
|
| EmployeeEmailModify | string |
None. |
|
| EmployeeNameModify | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"typeId": 1,
"id": 2,
"title": "sample string 3",
"contents": "sample string 4",
"imageUrl": "sample string 5",
"summary": "sample string 6",
"isHot": true,
"totalViewd": 8,
"dateCreate": "2025-12-06T12:34:35.8433246+07:00",
"employeeEmailCreate": "sample string 9",
"employeeNameCreate": "sample string 10",
"dateModify": "2025-12-06T12:34:35.8433246+07:00",
"employeeEmailModify": "sample string 11",
"employeeNameModify": "sample string 12"
}
application/xml, text/xml
Sample:
<NewsDetailModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AgencyWebAPI.Models.News"> <Contents>sample string 4</Contents> <DateCreate>2025-12-06T12:34:35.8433246+07:00</DateCreate> <DateModify>2025-12-06T12:34:35.8433246+07:00</DateModify> <EmployeeEmailCreate>sample string 9</EmployeeEmailCreate> <EmployeeEmailModify>sample string 11</EmployeeEmailModify> <EmployeeNameCreate>sample string 10</EmployeeNameCreate> <EmployeeNameModify>sample string 12</EmployeeNameModify> <Id>2</Id> <ImageUrl>sample string 5</ImageUrl> <IsHot>true</IsHot> <Summary>sample string 6</Summary> <Title>sample string 3</Title> <TotalViewd>8</TotalViewd> <TypeId>1</TypeId> </NewsDetailModel>