{"componentChunkName":"component---src-templates-tutorial-js","path":"/en/tutorial/menu/","result":{"data":{"markdownRemark":{"html":"<h2 id=\"menu\"><a href=\"#menu\" aria-hidden class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>menu</h2>\n<h3 id=\"uri\"><a href=\"#uri\" aria-hidden class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>URI</h3>\n<p><code class=\"gatsby-code-text\">http://{server}:{port}/imanager/dashboard/web/api/appset/menu</code></p>\n<h3 id=\"supported-methods\"><a href=\"#supported-methods\" aria-hidden class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Supported Methods</h3>\n<p>GET</p>\n<h3 id=\"parent-resource\"><a href=\"#parent-resource\" aria-hidden class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Parent Resource</h3>\n<p>appset</p>\n<h3 id=\"introduction\"><a href=\"#introduction\" aria-hidden class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Introduction</h3>\n<p>Get home page menu by API.</p>\n<p>Supported representation format: JSON.</p>\n<h3 id=\"http-request-method\"><a href=\"#http-request-method\" aria-hidden class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>HTTP Request Method</h3>\n<p>An HTTP request is performed on the following URI. Here we take JSON output format for illustration. <code class=\"gatsby-code-text\">{server}</code> is the server IP of iManager, you need to replace it by the actual server IP; <code class=\"gatsby-code-text\">{port}</code> is the port number of iManager, you need to replace it by the actual port.</p>\n<p><code class=\"gatsby-code-text\">http://{server}:{port}/imanager/dashboard/web/api/appset/menu</code></p>\n<h4 id=\"get-request\"><a href=\"#get-request\" aria-hidden class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>GET Request</h4>\n<p>View the home page menu</p>\n<h4 id=\"response-structure\"><a href=\"#response-structure\" aria-hidden class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Response Structure</h4>\n<p>Return to the menu, include the basic information of the menu, make of by the following fields:</p>\n<table class=\"rtTable\" cellspacing=\"0\" width=\"80%\" align=\"center\">\n\t<col style=\"width: 15%;\" />\n\t<col style=\"width: 15%;\" />\n\t<col style=\"width: 70%;\" />\n\t<tr class=\"t1st\">\n\t\t<th>Field</th>\n\t\t<th>Type</th>\n\t\t<th>Explanation</th>\n\t</tr>\n\t<tr class=\"t2Row\">\n\t\t<td>name</td>\n\t\t<td>String</td>\n\t\t<td>GIS environment name</td>\n\t</tr>\n\t<tr class=\"t1Row\">\n\t\t<td>group</td>\n\t\t<td>String</td>\n\t\t<td>GIS environment group name</td>\n\t</tr>\n\t<tr class=\"t2Row\">\n\t\t<td>items</td>\n\t\t<td>items</td>\n\t\t<td>GIS environment in each group</td>\n\t</tr>\n</table>\n<p>Items have the detail information of the child object in the group, make of by the following fields:</p>\n<table class=\"rtTable\" cellspacing=\"0\" width=\"80%\" align=\"center\">\n\t<col style=\"width: 15%;\" />\n\t<col style=\"width: 15%;\" />\n\t<col style=\"width: 70%;\" />\n\t<tr class=\"t1st\">\n\t\t<th>Field</th>\n\t\t<th>Type</th>\n\t\t<th>Explanation</th>\n\t</tr>\n\t<tr class=\"t2Row\">\n\t\t<td>name</td>\n\t\t<td>String</td>\n\t\t<td>GIS environment name</td>\n\t</tr>\n\t<tr class=\"t1Row\">\n\t\t<td>type</td>\n\t\t<td>String</td>\n\t\t<td>GIS environment type</td>\n\t</tr>\n</table>\n<h4 id=\"response-case\"><a href=\"#response-case\" aria-hidden class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Response Case</h4>\n<p>Execute GET request for URL <code class=\"gatsby-code-text\">http://192.168.17.139:31100/imanager/dashboard/web/api/appset/menu</code>, the response result with json format is in the below:</p>\n<div class=\"gatsby-highlight\" data-language=\"jsxon\"><pre class=\"gatsby-code-jsxon\"><code class=\"gatsby-code-jsxon\">[\n​    {\n​        &quot;name&quot;: &quot;GIS Application Set&quot;,\n​        &quot;group&quot;: &quot;gisappset&quot;,\n​        &quot;isCustom&quot;: false,\n​        &quot;items&quot;: [\n​            {\n​                &quot;name&quot;: &quot;GIS Cloud Suite&quot;,\n​                &quot;type&quot;: &quot;icloud-native&quot;,\n​                &quot;isCustom&quot;: false\n​            },\n​            {\n​                &quot;name&quot;: &quot;GIS Server&quot;,\n​                &quot;type&quot;: &quot;iserver&quot;,\n​                &quot;isCustom&quot;: false\n​            },\n​            {\n​                &quot;name&quot;: &quot;GIS Portal&quot;,\n​                &quot;type&quot;: &quot;iportal&quot;,\n​                &quot;isCustom&quot;: false\n​            },\n​            {\n​                &quot;name&quot;: &quot;GIS Desktop&quot;,\n​                &quot;type&quot;: &quot;idesktop&quot;,\n​                &quot;isCustom&quot;: false\n​            },\n​            {\n​                &quot;name&quot;: &quot;GIS Tile Cluster&quot;,\n​                &quot;type&quot;: &quot;tile-cluster&quot;,\n​                &quot;isCustom&quot;: false\n​            },\n​            {\n​                &quot;name&quot;: &quot;GIS Site&quot;,\n​                &quot;type&quot;: &quot;gissite&quot;,\n​                &quot;isCustom&quot;: false\n​            },\n​            {\n​                &quot;name&quot;: &quot;GIS Big Data&quot;,\n​                &quot;type&quot;: &quot;hbase&quot;,\n​                &quot;isCustom&quot;: false\n​            },\n​            {\n​                &quot;name&quot;: &quot;Spatial Data Science&quot;,\n​                &quot;type&quot;: &quot;is-datascience&quot;,\n​                &quot;isCustom&quot;: false\n​            },\n​            {\n​                &quot;name&quot;: &quot;Spatial Blockchain&quot;,\n​                &quot;type&quot;: &quot;blockchain&quot;,\n​                &quot;isCustom&quot;: false\n​            }\n​        ]\n​    },\n​    {\n​        &quot;name&quot;: &quot;Database&quot;,\n​        &quot;group&quot;: &quot;database&quot;,\n​        &quot;isCustom&quot;: false,\n​        &quot;items&quot;: [\n​            {\n​                &quot;name&quot;: &quot;Redis&quot;,\n​                &quot;type&quot;: &quot;redis&quot;,\n​                &quot;isCustom&quot;: false\n​            },\n​            {\n​                &quot;name&quot;: &quot;MySQL&quot;,\n​                &quot;type&quot;: &quot;mysql&quot;,\n​                &quot;isCustom&quot;: false\n​            },\n​            {\n​                &quot;name&quot;: &quot;PostGIS&quot;,\n​                &quot;type&quot;: &quot;postgis&quot;,\n​                &quot;isCustom&quot;: false\n​            },\n​            {\n​                &quot;name&quot;: &quot;PostgreSQL&quot;,\n​                &quot;type&quot;: &quot;postgresql&quot;,\n​                &quot;isCustom&quot;: false\n​            },\n​            {\n​                &quot;name&quot;: &quot;Elasticsearch&quot;,\n​                &quot;type&quot;: &quot;elasticsearch&quot;,\n​                &quot;isCustom&quot;: false\n​            }\n​        ]\n​    }\n]</code></pre></div>","frontmatter":{"title":"APIs","next":null,"prev":null},"fields":{"path":"content/tutorial/menu.en.md","slug":"/en/tutorial/menu/","langKey":"en"}}},"pageContext":{"slug":"/en/tutorial/menu/"}}}