POST api/User/GetUserMenu

Get the device menu

Request Information

Body Parameters

UserMenuModel
NameDescriptionTypeAdditional information
list

gather

Collection of UserMenu

None.

DeviceId

device id

integer

None.

Token

Get it after logging in Token

string

None.

Language

Language Option

string

None.

AppId

APP Application Identifier

string

None.

Request Formats

application/json, text/json

Sample:
{
  "list": [
    {
      "Type": 1,
      "Name": "sample string 2",
      "DeviceId": 3
    },
    {
      "Type": 1,
      "Name": "sample string 2",
      "DeviceId": 3
    }
  ],
  "DeviceId": 1,
  "Token": "sample string 2",
  "Language": "sample string 3",
  "AppId": "sample string 4"
}

application/xml, text/xml

Sample:
<UserMenuModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 4</AppId>
  <Language>sample string 3</Language>
  <Token>sample string 2</Token>
  <DeviceId>1</DeviceId>
  <list xmlns:d2p1="http://schemas.datacontract.org/2004/07/NewGPS2012.Entity.Entity">
    <d2p1:UserMenu>
      <d2p1:DeviceId>3</d2p1:DeviceId>
      <d2p1:Name>sample string 2</d2p1:Name>
      <d2p1:Type>1</d2p1:Type>
    </d2p1:UserMenu>
    <d2p1:UserMenu>
      <d2p1:DeviceId>3</d2p1:DeviceId>
      <d2p1:Name>sample string 2</d2p1:Name>
      <d2p1:Type>1</d2p1:Type>
    </d2p1:UserMenu>
  </list>
</UserMenuModel>

Response Information

Resource Description

UserMenuResult
NameDescriptionTypeAdditional information
list

Collection of UserMenu

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "list": [
    {
      "Type": 1,
      "Name": "sample string 2",
      "DeviceId": 3
    },
    {
      "Type": 1,
      "Name": "sample string 2",
      "DeviceId": 3
    }
  ],
  "State": 1
}

application/xml, text/xml

Sample:
<UserMenuResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>1</State>
  <list xmlns:d2p1="http://schemas.datacontract.org/2004/07/NewGPS2012.Entity.Entity">
    <d2p1:UserMenu>
      <d2p1:DeviceId>3</d2p1:DeviceId>
      <d2p1:Name>sample string 2</d2p1:Name>
      <d2p1:Type>1</d2p1:Type>
    </d2p1:UserMenu>
    <d2p1:UserMenu>
      <d2p1:DeviceId>3</d2p1:DeviceId>
      <d2p1:Name>sample string 2</d2p1:Name>
      <d2p1:Type>1</d2p1:Type>
    </d2p1:UserMenu>
  </list>
</UserMenuResult>