POST api/qlhangguiquadem/TaoQLHangGuiQuaDem
Tạo mới thiết bị
Request Information
URI Parameters
None.
Body Parameters
QLHangGuiQuaDemModel| Name | Description | Type | Additional information |
|---|---|---|---|
| IdRow | integer |
None. |
|
| IdSap | integer |
None. |
|
| MaSap | string |
None. |
|
| TenHang | string |
None. |
|
| DonViTinh | string |
None. |
|
| SoLuong | decimal number |
None. |
|
| GiaTien | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"IdRow": 1,
"IdSap": 2,
"MaSap": "sample string 3",
"TenHang": "sample string 4",
"DonViTinh": "sample string 5",
"SoLuong": 6.1,
"GiaTien": 7
}
application/xml, text/xml
Sample:
<QLHangGuiQuaDemModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API_KD.Models"> <DonViTinh>sample string 5</DonViTinh> <GiaTien>7</GiaTien> <IdRow>1</IdRow> <IdSap>2</IdSap> <MaSap>sample string 3</MaSap> <SoLuong>6.1</SoLuong> <TenHang>sample string 4</TenHang> </QLHangGuiQuaDemModel>
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>