GET api/PortalAdmin/News/Detail?NewsId={NewsId}&Keyword={Keyword}&PortalId={PortalId}&CurrentPage={CurrentPage}&RowPerPage={RowPerPage}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
NewsId

integer

Required

Keyword

string

None.

PortalId

integer

Required

CurrentPage

integer

Required

RowPerPage

integer

Required

Body Parameters

None.

Response Information

Resource Description

News_DetailModel
NameDescriptionTypeAdditional information
Id

integer

None.

Title

string

None.

ShortDescription

string

None.

IsImportant

boolean

None.

IsDraff

boolean

None.

IsCustomer

boolean

None.

ImageURL

string

None.

FileURL

string

None.

Link

string

None.

TypeName

string

None.

TypeId

integer

None.

Description

string

None.

UserReceive

integer

None.

UserRead

integer

None.

DateCreate

date

None.

DateUpdate

date

None.

EmployeeNameCreate

string

None.

EmployeeNameUpdate

string

None.

CustomerList

Collection of NewsDetail_CustomerListModel

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "title": "sample string 2",
  "shortDescription": "sample string 3",
  "isImportant": true,
  "isDraff": true,
  "isCustomer": true,
  "imageURL": "sample string 7",
  "fileURL": "sample string 8",
  "link": "sample string 9",
  "typeName": "sample string 10",
  "typeId": 11,
  "description": "sample string 12",
  "userReceive": 13,
  "userRead": 14,
  "dateCreate": "2025-12-06T12:34:59.9216667+07:00",
  "dateUpdate": "2025-12-06T12:34:59.9216667+07:00",
  "employeeNameCreate": "sample string 15",
  "employeeNameUpdate": "sample string 16",
  "customerList": [
    {
      "id": 1,
      "customerId": 2,
      "fullName": "sample string 3",
      "phone": "sample string 4",
      "contractName": "sample string 5"
    },
    {
      "id": 1,
      "customerId": 2,
      "fullName": "sample string 3",
      "phone": "sample string 4",
      "contractName": "sample string 5"
    }
  ]
}

application/xml, text/xml

Sample:
<News_DetailModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AgencyWebAPI.Models.Portal">
  <CustomerList>
    <NewsDetail_CustomerListModel>
      <ContractName>sample string 5</ContractName>
      <CustomerId>2</CustomerId>
      <FullName>sample string 3</FullName>
      <Id>1</Id>
      <Phone>sample string 4</Phone>
    </NewsDetail_CustomerListModel>
    <NewsDetail_CustomerListModel>
      <ContractName>sample string 5</ContractName>
      <CustomerId>2</CustomerId>
      <FullName>sample string 3</FullName>
      <Id>1</Id>
      <Phone>sample string 4</Phone>
    </NewsDetail_CustomerListModel>
  </CustomerList>
  <DateCreate>2025-12-06T12:34:59.9216667+07:00</DateCreate>
  <DateUpdate>2025-12-06T12:34:59.9216667+07:00</DateUpdate>
  <Description>sample string 12</Description>
  <EmployeeNameCreate>sample string 15</EmployeeNameCreate>
  <EmployeeNameUpdate>sample string 16</EmployeeNameUpdate>
  <FileURL>sample string 8</FileURL>
  <Id>1</Id>
  <ImageURL>sample string 7</ImageURL>
  <IsCustomer>true</IsCustomer>
  <IsDraff>true</IsDraff>
  <IsImportant>true</IsImportant>
  <Link>sample string 9</Link>
  <ShortDescription>sample string 3</ShortDescription>
  <Title>sample string 2</Title>
  <TypeId>11</TypeId>
  <TypeName>sample string 10</TypeName>
  <UserRead>14</UserRead>
  <UserReceive>13</UserReceive>
</News_DetailModel>