POST api/MenuItem/AddMenuItem
Request Information
URI Parameters
None.
Body Parameters
MenuItemDTOName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
Name | string |
Required String length: inclusive between 0 and 50 |
|
NameOther | string |
Required String length: inclusive between 0 and 50 |
|
IsActive | boolean |
Required |
|
ActionName | string |
String length: inclusive between 0 and 50 |
|
ControllerName | string |
String length: inclusive between 0 and 50 |
|
URL | string |
String length: inclusive between 0 and 1000 |
|
ApplicationId | integer |
None. |
|
Icon | string |
None. |
|
ItemOrder | integer |
Required Matching regular expression pattern: ^[0-9]+$ |
|
ParentId | integer |
None. |
|
Parent | MenuItemDTO |
None. |
|
allowAnonymous | boolean |
None. |
Request Formats
application/json
Sample:
text/json
Sample:
application/xml
Sample:
text/xml
Sample:
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ReturnResultName | Description | Type | Additional information |
---|---|---|---|
ResultCode | ReturnResultCode |
None. |
|
ResultMessage | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "ResultCode": 1, "ResultMessage": "sample string 1" }
application/xml, text/xml
Sample:
<ReturnResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Infrastructure"> <ResultCode>NullOrEmptyUserId</ResultCode> <ResultMessage>sample string 1</ResultMessage> </ReturnResult>