POST api/thietbisap/TaoThietBiSapList?pIdSap={pIdSap}
Tạo mới thiết bị
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| pIdSap | integer |
Default value is 0 |
Body Parameters
Collection of ThietBiSapModel| Name | Description | Type | Additional information |
|---|---|---|---|
| IdRow | integer |
None. |
|
| IdSap | integer |
None. |
|
| TenSap | string |
None. |
|
| IdTB | integer |
None. |
|
| TenTB | string |
None. |
|
| DonGia | integer |
None. |
|
| SoLuong | integer |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"IdRow": 1,
"IdSap": 2,
"TenSap": "sample string 3",
"IdTB": 4,
"TenTB": "sample string 5",
"DonGia": 6,
"SoLuong": 7
},
{
"IdRow": 1,
"IdSap": 2,
"TenSap": "sample string 3",
"IdTB": 4,
"TenTB": "sample string 5",
"DonGia": 6,
"SoLuong": 7
}
]
application/xml, text/xml
Sample:
<ArrayOfThietBiSapModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API_KD.Models">
<ThietBiSapModel>
<DonGia>6</DonGia>
<IdRow>1</IdRow>
<IdSap>2</IdSap>
<IdTB>4</IdTB>
<SoLuong>7</SoLuong>
<TenSap>sample string 3</TenSap>
<TenTB>sample string 5</TenTB>
</ThietBiSapModel>
<ThietBiSapModel>
<DonGia>6</DonGia>
<IdRow>1</IdRow>
<IdSap>2</IdSap>
<IdTB>4</IdTB>
<SoLuong>7</SoLuong>
<TenSap>sample string 3</TenSap>
<TenTB>sample string 5</TenTB>
</ThietBiSapModel>
</ArrayOfThietBiSapModel>
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>