POST api/SanPham/Add

Request Information

URI Parameters

None.

Body Parameters

BE_SanPham
NameDescriptionTypeAdditional information
id

integer

None.

maSanPham

string

None.

tenSanPham

string

None.

maSPNCC

string

None.

tenSPNCC

string

None.

namSX

integer

None.

maLoaiSanPham

string

None.

tenLoaiSanPham

string

None.

lotNo

string

None.

maThuocTinh

string

None.

tenThuocTinh

string

None.

giaTriThuocTinh

string

None.

tenGiaTriTT

string

None.

maNCC

string

None.

tenNCC

string

None.

nguoiTao

string

None.

tenNguoiTao

string

None.

ngayTao

date

None.

nguoiCapNhat

string

None.

ngayCapNhat

date

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "maSanPham": "sample string 2",
  "tenSanPham": "sample string 3",
  "maSPNCC": "sample string 4",
  "tenSPNCC": "sample string 5",
  "namSX": 6,
  "maLoaiSanPham": "sample string 7",
  "tenLoaiSanPham": "sample string 8",
  "lotNo": "sample string 9",
  "maThuocTinh": "sample string 10",
  "tenThuocTinh": "sample string 11",
  "giaTriThuocTinh": "sample string 12",
  "tenGiaTriTT": "sample string 13",
  "maNCC": "sample string 14",
  "tenNCC": "sample string 15",
  "nguoiTao": "sample string 16",
  "tenNguoiTao": "sample string 17",
  "ngayTao": "2026-01-10T16:12:29.6022372+07:00",
  "nguoiCapNhat": "sample string 19",
  "ngayCapNhat": "2026-01-10T16:12:29.6022372+07:00"
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.