POST api/dmloaihang/XoaLoaiHang
Xóa nahf cung cấp Header truyền vào token
Request Information
URI Parameters
None.
Body Parameters
LoaiHangData| Name | Description | Type | Additional information |
|---|---|---|---|
| IDLoaiHang | integer |
None. |
|
| TenLoaiHang | string |
None. |
|
| IDLoaiHangParent | integer |
None. |
|
| TenLoaiHangParent | string |
None. |
|
| IDLoaiRef | integer |
None. |
|
| GhiChu | string |
None. |
|
| HinhAnhLoaiHang | string |
None. |
|
| MoTaThem | string |
None. |
|
| DoUuTien | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"IDLoaiHang": 1,
"TenLoaiHang": "sample string 2",
"IDLoaiHangParent": 3,
"TenLoaiHangParent": "sample string 4",
"IDLoaiRef": 5,
"GhiChu": "sample string 6",
"HinhAnhLoaiHang": "sample string 7",
"MoTaThem": "sample string 8",
"DoUuTien": 9
}
application/xml, text/xml
Sample:
<LoaiHangData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API_KD.Models"> <DoUuTien>9</DoUuTien> <GhiChu>sample string 6</GhiChu> <HinhAnhLoaiHang>sample string 7</HinhAnhLoaiHang> <IDLoaiHang>1</IDLoaiHang> <IDLoaiHangParent>3</IDLoaiHangParent> <IDLoaiRef>5</IDLoaiRef> <MoTaThem>sample string 8</MoTaThem> <TenLoaiHang>sample string 2</TenLoaiHang> <TenLoaiHangParent>sample string 4</TenLoaiHangParent> </LoaiHangData>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
BaseModelOfObject| Name | Description | Type | Additional information |
|---|---|---|---|
| status | integer |
None. |
|
| data | Object |
None. |
|
| page | Object |
None. |
|
| error | ErrorModel |
None. |
Response Formats
application/json, text/json
Sample:
{
"status": 1,
"data": {},
"page": {},
"error": {
"message": "sample string 1",
"code": "sample string 2"
}
}
application/xml, text/xml
Sample:
<BaseModelOfanyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API_KD.Models">
<data />
<error>
<code>sample string 2</code>
<message>sample string 1</message>
</error>
<page />
<status>1</status>
</BaseModelOfanyType>