POST api/mathang/hinh-anh/sua
Sửa thông tin hình ảnh Header truyền vào token
Request Information
URI Parameters
None.
Body Parameters
SuaHinhAnhRequestModel| Name | Description | Type | Additional information |
|---|---|---|---|
| IDMatHang |
Id mặt hàng |
integer |
None. |
| HinhAnh |
Link hình ảnh |
string |
None. |
| TieuDe |
Tiêu đề |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"IDMatHang": 1,
"HinhAnh": "sample string 2",
"TieuDe": "sample string 3"
}
application/xml, text/xml
Sample:
<MatHangController.SuaHinhAnhRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API_KD.Controllers.API_DM"> <HinhAnh>sample string 2</HinhAnh> <IDMatHang>1</IDMatHang> <TieuDe>sample string 3</TieuDe> </MatHangController.SuaHinhAnhRequestModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
BaseModelOfBoolean| Name | Description | Type | Additional information |
|---|---|---|---|
| status | integer |
None. |
|
| data | boolean |
None. |
|
| page | boolean |
None. |
|
| error | ErrorModel |
None. |
Response Formats
application/json, text/json
Sample:
{
"status": 1,
"data": true,
"page": true,
"error": {
"message": "sample string 1",
"code": "sample string 2"
}
}
application/xml, text/xml
Sample:
<BaseModelOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API_KD.Models">
<data>true</data>
<error>
<code>sample string 2</code>
<message>sample string 1</message>
</error>
<page>true</page>
<status>1</status>
</BaseModelOfboolean>