POST api/v2/bien-moi-truong/them-moi
Request Information
URI Parameters
None.
Body Parameters
DM_BienMoiTruong| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | integer |
None. |
|
| TenCauHinh | string |
None. |
|
| GiaTriCauHinh | string |
None. |
|
| GhiChu | string |
None. |
|
| AllowEdit | boolean |
None. |
|
| AllowDelete | boolean |
None. |
|
| InUsed | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"tenCauHinh": "sample string 2",
"giaTriCauHinh": "sample string 3",
"ghiChu": "sample string 4",
"allowEdit": true,
"allowDelete": true,
"inUsed": true
}
application/xml, text/xml
Sample:
<DM_BienMoiTruong xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DTO"> <AllowDelete>true</AllowDelete> <AllowEdit>true</AllowEdit> <GhiChu>sample string 4</GhiChu> <GiaTriCauHinh>sample string 3</GiaTriCauHinh> <ID>1</ID> <InUsed>true</InUsed> <TenCauHinh>sample string 2</TenCauHinh> </DM_BienMoiTruong>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseObjectOfInt32| Name | Description | Type | Additional information |
|---|---|---|---|
| Status | boolean |
None. |
|
| Message | string |
None. |
|
| Data | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"status": true,
"message": "sample string 2",
"data": 3
}
application/xml, text/xml
Sample:
<ResponseObjectOfint xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QuanLyPhatTu_API.Models"> <Data>3</Data> <Message>sample string 2</Message> <Status>true</Status> </ResponseObjectOfint>