GET api/Public/News/Detail?id={id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

NewsPublicModel
NameDescriptionTypeAdditional information
TypeId

integer

None.

TypeName

string

None.

Id

integer

None.

Title

string

None.

Contents

string

None.

ImageUrl

string

None.

Summary

string

None.

IsHot

boolean

None.

DateCreate

date

None.

TotalRow

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "typeId": 1,
  "typeName": "sample string 2",
  "id": 3,
  "title": "sample string 4",
  "contents": "sample string 5",
  "imageUrl": "sample string 6",
  "summary": "sample string 7",
  "isHot": true,
  "dateCreate": "2025-12-06T12:28:48.449538+07:00",
  "totalRow": 9
}

application/xml, text/xml

Sample:
<NewsPublicModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AgencyWebAPI.Models.Public">
  <Contents>sample string 5</Contents>
  <DateCreate>2025-12-06T12:28:48.449538+07:00</DateCreate>
  <Id>3</Id>
  <ImageUrl>sample string 6</ImageUrl>
  <IsHot>true</IsHot>
  <Summary>sample string 7</Summary>
  <Title>sample string 4</Title>
  <TotalRow>9</TotalRow>
  <TypeId>1</TypeId>
  <TypeName>sample string 2</TypeName>
</NewsPublicModel>