POST api/TinTuc/create
Request Information
URI Parameters
None.
Body Parameters
TinTucViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | integer |
None. |
|
| TieuDe | string |
None. |
|
| TieuDeLink | string |
None. |
|
| HienThiTieuDe | boolean |
None. |
|
| TomTat | string |
None. |
|
| HienThiTomTat | boolean |
None. |
|
| NoiDung | string |
None. |
|
| TuKhoa | string |
None. |
|
| HinhThuNho | string |
None. |
|
| HienThiHinhThuNho | boolean |
None. |
|
| LuotXem | integer |
None. |
|
| ThongTinNong | boolean |
None. |
|
| FileDinhKem | string |
None. |
|
| HienThiFile | boolean |
None. |
|
| KichHoat | boolean |
None. |
|
| NgayTao | date |
None. |
|
| NguoiTao | string |
None. |
|
| NgaySua | date |
None. |
|
| NguoiSua | string |
None. |
|
| DaXoa | boolean |
None. |
|
| NgayXoa | date |
None. |
|
| NguoiXoa | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"ID": 1,
"TieuDe": "sample string 2",
"TieuDeLink": "sample string 3",
"HienThiTieuDe": true,
"TomTat": "sample string 4",
"HienThiTomTat": true,
"NoiDung": "sample string 5",
"TuKhoa": "sample string 6",
"HinhThuNho": "sample string 7",
"HienThiHinhThuNho": true,
"LuotXem": 1,
"ThongTinNong": true,
"FileDinhKem": "sample string 8",
"HienThiFile": true,
"KichHoat": true,
"NgayTao": "2026-06-12T02:16:33.9187754+07:00",
"NguoiTao": "sample string 9",
"NgaySua": "2026-06-12T02:16:33.9187754+07:00",
"NguoiSua": "sample string 10",
"DaXoa": true,
"NgayXoa": "2026-06-12T02:16:33.9197627+07:00",
"NguoiXoa": "sample string 11"
}
application/xml, text/xml
Sample:
<TinTucViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LcdCNTT.Web.Models"> <DaXoa>true</DaXoa> <FileDinhKem>sample string 8</FileDinhKem> <HienThiFile>true</HienThiFile> <HienThiHinhThuNho>true</HienThiHinhThuNho> <HienThiTieuDe>true</HienThiTieuDe> <HienThiTomTat>true</HienThiTomTat> <HinhThuNho>sample string 7</HinhThuNho> <ID>1</ID> <KichHoat>true</KichHoat> <LuotXem>1</LuotXem> <NgaySua>2026-06-12T02:16:33.9187754+07:00</NgaySua> <NgayTao>2026-06-12T02:16:33.9187754+07:00</NgayTao> <NgayXoa>2026-06-12T02:16:33.9197627+07:00</NgayXoa> <NguoiSua>sample string 10</NguoiSua> <NguoiTao>sample string 9</NguoiTao> <NguoiXoa>sample string 11</NguoiXoa> <NoiDung>sample string 5</NoiDung> <ThongTinNong>true</ThongTinNong> <TieuDe>sample string 2</TieuDe> <TieuDeLink>sample string 3</TieuDeLink> <TomTat>sample string 4</TomTat> <TuKhoa>sample string 6</TuKhoa> </TinTucViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |