Mobile Menu

This service returns a list of menu items on the app. The menu that will be returned is determined by the CompanyId key and role from the token. 

The menu contains headers (ParentId = null) and an item (ParentId is equal to header ID).

The list is automatically sorted in the correct order by the service.

The Version key determines what the menu will include. Currently, the highest version of a menu is 2.

 

Request (JSON)

GET /Menu/mobile/?securitytoken={sessionToken}&Version={version}
Content-Type: application/json

 

Response (JSON)

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8

"[{\"DefaultChildId\":null,\"Description\":\"\",\"Enabled\":true,\"Id\":1024,\"OrderIndex\":1,\"ParentId\":null,\"ResourceId\":\"InfoHeader\",\"Role\":\"4ac90ed7-edd4-4e4c-98d9-3aa4b1b85d7d\",\"Selected\":false,\"Url\":null},{\"DefaultChildId\":null,\"Description\":\"\",\"Enabled\":true,\"Id\":1025,\"OrderIndex\":1,\"ParentId\":1024,\"ResourceId\":\"FrontPage\",\"Role\":\"4ac90ed7-edd4-4e4c-98d9-3aa4b1b85d7d\",\"Selected\":false,\"Url\":null }]"