POST api/BanasAIHRApi/MenuRightsRtr

Request Information

URI Parameters

None.

Body Parameters

MenuRightsViewModel
NameDescriptionTypeAdditional information
PageName

string

None.

Username

string

None.

PageUrl

string

None.

ModuleId

integer

None.

ModuleName

string

None.

ModulePriority

integer

None.

PagePriority

integer

None.

InsertRight

integer

None.

ViewRight

integer

None.

DeleteRight

integer

None.

UpdateRight

integer

None.

MenuRightsList

Collection of BanasAIHR_MenuRightsRtr_Result

None.

Request Formats

application/json, text/json

Sample:
{
  "PageName": "sample string 1",
  "Username": "sample string 2",
  "PageUrl": "sample string 3",
  "ModuleId": 1,
  "ModuleName": "sample string 4",
  "ModulePriority": 5,
  "PagePriority": 6,
  "InsertRight": 1,
  "ViewRight": 1,
  "DeleteRight": 1,
  "UpdateRight": 1,
  "MenuRightsList": [
    {
      "PageName": "sample string 1",
      "PageUrl": "sample string 2",
      "ModuleId": 1,
      "ModuleName": "sample string 3",
      "ModulePriority": 4,
      "PagePriority": 5,
      "InsertRight": 1,
      "ViewRight": 1,
      "DeleteRight": 1,
      "UpdateRight": 1
    },
    {
      "PageName": "sample string 1",
      "PageUrl": "sample string 2",
      "ModuleId": 1,
      "ModuleName": "sample string 3",
      "ModulePriority": 4,
      "PagePriority": 5,
      "InsertRight": 1,
      "ViewRight": 1,
      "DeleteRight": 1,
      "UpdateRight": 1
    }
  ]
}

application/xml, text/xml

Sample:
<MenuRightsViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BanasAIHRViewModel.UserManagement">
  <DeleteRight>1</DeleteRight>
  <InsertRight>1</InsertRight>
  <MenuRightsList xmlns:d2p1="http://schemas.datacontract.org/2004/07/BanasAIHRdb">
    <d2p1:BanasAIHR_MenuRightsRtr_Result>
      <d2p1:DeleteRight>1</d2p1:DeleteRight>
      <d2p1:InsertRight>1</d2p1:InsertRight>
      <d2p1:ModuleId>1</d2p1:ModuleId>
      <d2p1:ModuleName>sample string 3</d2p1:ModuleName>
      <d2p1:ModulePriority>4</d2p1:ModulePriority>
      <d2p1:PageName>sample string 1</d2p1:PageName>
      <d2p1:PagePriority>5</d2p1:PagePriority>
      <d2p1:PageUrl>sample string 2</d2p1:PageUrl>
      <d2p1:UpdateRight>1</d2p1:UpdateRight>
      <d2p1:ViewRight>1</d2p1:ViewRight>
    </d2p1:BanasAIHR_MenuRightsRtr_Result>
    <d2p1:BanasAIHR_MenuRightsRtr_Result>
      <d2p1:DeleteRight>1</d2p1:DeleteRight>
      <d2p1:InsertRight>1</d2p1:InsertRight>
      <d2p1:ModuleId>1</d2p1:ModuleId>
      <d2p1:ModuleName>sample string 3</d2p1:ModuleName>
      <d2p1:ModulePriority>4</d2p1:ModulePriority>
      <d2p1:PageName>sample string 1</d2p1:PageName>
      <d2p1:PagePriority>5</d2p1:PagePriority>
      <d2p1:PageUrl>sample string 2</d2p1:PageUrl>
      <d2p1:UpdateRight>1</d2p1:UpdateRight>
      <d2p1:ViewRight>1</d2p1:ViewRight>
    </d2p1:BanasAIHR_MenuRightsRtr_Result>
  </MenuRightsList>
  <ModuleId>1</ModuleId>
  <ModuleName>sample string 4</ModuleName>
  <ModulePriority>5</ModulePriority>
  <PageName>sample string 1</PageName>
  <PagePriority>6</PagePriority>
  <PageUrl>sample string 3</PageUrl>
  <UpdateRight>1</UpdateRight>
  <Username>sample string 2</Username>
  <ViewRight>1</ViewRight>
</MenuRightsViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.