POST api/Online/SaveMenuCategory
Saves the inputted data for menu categories in the Edit menu page. Can add new categories, or edit categories.
Request Information
URI Parameters
None.
Body Parameters
Online_MenuCategoryModelName | Description | Type | Additional information |
---|---|---|---|
ID | integer |
None. |
|
MerchantId | integer |
None. |
|
MenuTypeId | integer |
None. |
|
MenuCategoryName | string |
None. |
|
Description | string |
None. |
|
LinkedPrinter | integer |
None. |
|
OrderNum | integer |
None. |
|
CategoryType | integer |
None. |
|
Status | integer |
None. |
|
UID | integer |
None. |
|
EndTime | integer |
None. |
|
StartTime | integer |
None. |
|
VATRate | string |
None. |
|
Picture | string |
None. |
|
InOrOut | integer |
None. |
|
AvailableDays | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "ID": 1, "MerchantId": 1, "MenuTypeId": 1, "MenuCategoryName": "sample string 2", "Description": "sample string 3", "LinkedPrinter": 1, "OrderNum": 1, "CategoryType": 1, "Status": 1, "UID": 1, "EndTime": 1, "StartTime": 1, "VATRate": "sample string 4", "Picture": "sample string 5", "InOrOut": 1, "AvailableDays": "sample string 6" }
application/xml, text/xml
Sample:
<Online_MenuCategoryModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LP.WebAPI.Models"> <AvailableDays>sample string 6</AvailableDays> <CategoryType>1</CategoryType> <Description>sample string 3</Description> <EndTime>1</EndTime> <ID>1</ID> <InOrOut>1</InOrOut> <LinkedPrinter>1</LinkedPrinter> <MenuCategoryName>sample string 2</MenuCategoryName> <MenuTypeId>1</MenuTypeId> <MerchantId>1</MerchantId> <OrderNum>1</OrderNum> <Picture>sample string 5</Picture> <StartTime>1</StartTime> <Status>1</Status> <UID>1</UID> <VATRate>sample string 4</VATRate> </Online_MenuCategoryModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.