Metadata Menu Rest API - imona/tutorial GitHub Wiki
This service returns list of menu items that developer added in the platform for the specific application with their icons.
The menu has three types : Plain , Entity , Service
if type is Entity then the entityID will contain the id of the entity that we want to open when the user clicks on the item.
if type is service then the script will contain the script that will be executed when the user clicks on the item.
Basic authentication is used. Provide your username & password in each request.
Service URL: /rest/metadata/menu/{appShortName}
Method: GET
Description: Returns List of menu for one app
Sample response:
[
{
name: "_ui2e7cbe9c-1694-4e45-8793-6effe7e64683",
descEnglish: "kkk",
descTurkish: null,
icon: "iVBORw0KGgoAAAANSUhEUgAAAF4AAACACAYAAACC5t4xAA...",
type: "Plain",
script: null,
entityID: null,
parent: null
},
{
name: "_ui0a145bc1-d2f2-416c-8a95-4aab9dae6c1e",
descEnglish: "uuu",
descTurkish: null,
icon: null,
type: "Plain",
script: null,
entityID: null,
parent: "_ui47f90c82-855c-406f-afd7-e9cd2a029146"
},
{
name: "_ui86ab97aa-83a4-4578-b37c-d648fa296664",
descEnglish: "TestMenu",
descTurkish: null,
icon: "iVBORw0KGgoAAAANSUhEUgAAAFoAAACACAYAAACLDX5LAAA...",
type: "Entity",
script: null,
entityID: "0e2c8e43-a65e-44f8-bccc-7b31464f883d",
parent: null
},
{
name: "_uiedb08117-bd73-45de-82d9-565d07505320",
descEnglish: "sss",
descTurkish: null,
icon: "iVBORw0KGgoAAAANSUhEUgAAAF4AAACACAYAAACC5t4xAAAHM...",
type: "Service",
script: "adj0mJKShxgVdRN8DDq8+un+MD2SBBzW",
entityID: null,
parent: null
},
{
name: "_ui327bbfb7-0a0c-4e5f-8953-8fd62f788efa",
descEnglish: "TestB",
descTurkish: null,
icon: "iVBORw0KGgoAAAANSUhEUgAAAGgAAACACAYAAADnCyxO...",
type: "Entity",
script: null,
entityID: "bbaf10e6-a923-426d-b61a-03d4773f1c89",
parent: null
},
{
name: "_ui47f90c82-855c-406f-afd7-e9cd2a029146",
descEnglish: "ttt",
descTurkish: null,
icon: null,
type: "Plain",
script: null,
entityID: null,
parent: "_ui2e7cbe9c-1694-4e45-8793-6effe7e64683"
}
]