POST api/RestaurantPhoto
cập nhật danh sách ảnh
Request Information
URI Parameters
None.
Body Parameters
danh sách ảnh và danh sách Album
RestaurantPhotoParam| Name | Description | Type | Additional information |
|---|---|---|---|
| ListRestaurantPhoto |
danh sách ảnh |
Collection of RestaurantPhoto |
None. |
| CompanyCode |
Tên miền của nhà hàng |
string |
None. |
| BranchID |
Id nhà hàng |
string |
None. |
| RestaurantId |
ID của nhà hàng hiện tại |
integer |
None. |
| PublishType |
Đã publish hay chưa |
EnumPublishType |
None. |
| PublishHasLicense | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"ListRestaurantPhoto": [
null,
{
"PhotoId": "84c1bb57-9ed3-49b2-83d1-a6f7714b915a",
"RelationId": 1,
"UserId": "7b791453-6859-45a5-94eb-41f06d5e1a86",
"RestaurantId": 2,
"Extension": "sample string 3",
"Width": 4.1,
"Height": 5.1,
"PhotoType": 6,
"IsCover": true,
"IsShow": true,
"PhotoAlbumId": 1,
"IsFolder": true,
"PhotoAlbumIdString": "sample string 10",
"PhotoAlbumName": "sample string 11",
"IsDeleteImageFile": true,
"CreatedDate": "2026-04-05T21:48:11.8613387+07:00",
"CreatedBy": "sample string 14",
"ModifiedDate": "2026-04-05T21:48:11.8613387+07:00",
"ModifiedBy": "sample string 15",
"MISAEntityState": 0
}
],
"CompanyCode": "sample string 1",
"BranchID": "sample string 2",
"RestaurantId": 3,
"PublishType": 0,
"PublishHasLicense": true
}
text/xml
Sample:
<RestaurantPhotoParam xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MISA.CUK5FOOD.BO">
<BranchID>sample string 2</BranchID>
<CompanyCode>sample string 1</CompanyCode>
<ListRestaurantPhoto>
<RestaurantPhoto i:nil="true" />
<RestaurantPhoto>
<_x003C_DeleteStoredProcedureName_x003E_k__BackingField i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<_x003C_InsertStoredProcedureName_x003E_k__BackingField i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<_x003C_MISAEntityState_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/MISA.Library">None</_x003C_MISAEntityState_x003E_k__BackingField>
<_x003C_StoreSchema_x003E_k__BackingField i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<_x003C_TableSchema_x003E_k__BackingField i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<_x003C_UpdateStoredProcedureName_x003E_k__BackingField i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<m_ChangedValues xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<m_OriginalValues xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<ClientID>sample string 16</ClientID>
<CreatedBy>sample string 14</CreatedBy>
<CreatedDate>2026-04-05T21:48:11.8613387+07:00</CreatedDate>
<ImportErrorDetail i:nil="true" />
<ImportListError />
<ImportRowIndex>0</ImportRowIndex>
<ModifiedBy>sample string 15</ModifiedBy>
<ModifiedDate>2026-04-05T21:48:11.8613387+07:00</ModifiedDate>
<Extension>sample string 3</Extension>
<Height>5.1</Height>
<IsCover>true</IsCover>
<IsDeleteImageFile>true</IsDeleteImageFile>
<IsFolder>true</IsFolder>
<IsShow>true</IsShow>
<PhotoAlbumId>1</PhotoAlbumId>
<PhotoAlbumIdString>sample string 10</PhotoAlbumIdString>
<PhotoAlbumName>sample string 11</PhotoAlbumName>
<PhotoId>84c1bb57-9ed3-49b2-83d1-a6f7714b915a</PhotoId>
<PhotoType>6</PhotoType>
<RelationId>1</RelationId>
<RestaurantId>2</RestaurantId>
<UserId>7b791453-6859-45a5-94eb-41f06d5e1a86</UserId>
<Width>4.1</Width>
</RestaurantPhoto>
</ListRestaurantPhoto>
<PublishHasLicense>true</PublishHasLicense>
<PublishType>None</PublishType>
<RestaurantId>3</RestaurantId>
</RestaurantPhotoParam>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
thành công thất bại
ServiceResult| Name | Description | Type | Additional information |
|---|---|---|---|
| ErrorType |
Loại lỗi |
EnumServiceErrorType |
None. |
| ErrorMessage |
Thông tin lỗi |
string |
None. |
| Data |
Dữ liệu trả về cho client |
Object |
None. |
| SummaryData |
Dữ liệu dòng tổng trên grid trả về client |
Object |
None. |
| Total |
Tổng số bản ghi trên grid |
integer |
None. |
| Success |
Thực thi Service thành công |
boolean |
None. |
| NewId |
Trả về ID của đối tượng khi cất thành công |
Object |
None. |
| LastSyncDate |
Thời gian truy cập lấy dữ liệu tính đến thời điểm hiện tại, Lưu dạng long để truyền qua webapi |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"ErrorType": 1,
"ErrorMessage": "sample string 1",
"Data": {},
"SummaryData": {},
"Total": 1,
"Success": true,
"NewId": {},
"LastSyncDate": 1
}
text/xml
Sample:
<ServiceResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MISA.CUK5FOOD.BO"> <Data /> <ErrorMessage>sample string 1</ErrorMessage> <ErrorType>CUKCUKSeflOrderPaid</ErrorType> <LastSyncDate>1</LastSyncDate> <NewId /> <Success>true</Success> <SummaryData /> <Total>1</Total> </ServiceResult>