Description

The following REST API requests can be used to debug, get more information from, or send a custom value to a G-MapServer (also referred to as G-Map Server). All requests in this article use the POST method type. 


In This Article


getFromGroup

Use this request to get a value for the key from a G-MapServer group.


REST Request


REST API URL:

http://<gmapIP>:<gmapPort>/rest/getFromGroup
Java


Use this API JSON request payload when making an API call to the GenRocket G-Map Server.

{    "groupName": "",     "key": "" }
HTML


REST Example

{   "groupName": "user.ssn",    // namespace.attributeName   "key": "350"}
HTML


getManyFromGroup

Use this request to get multiple values for the keys from a G-MapServer group.


REST Request


REST API URL:

http://<gmapIP>:<gmapPort>/rest/getManyFromGroup
Java


Use this API JSON request payload when making an API call to the GenRocket G-Map Server.

{    "groupName": "",    "data": "" }
HTML


REST Payload Example
{    "groupName": "user.ssn",    "data": ["350", "351", "352"]}
HTML


getNamespaces

Use this request to get namespaces from G-MapServer.


REST Request


REST API URL:

http://<gmapIP>:<gmapPort>/rest/getNamespaces
HTML


No request payload is required for this REST API request.


resetCache

Use this request to reset the G-MapServer cache.


REST Request


REST API URL:

http://<gmapIP>:<gmapPort>/rest/resetCache
HTML


No request payload is required for this REST API request.


putInGroup

Use this request to send a custom value to the G-Map Server via a REST API call.  


REST Request


REST API URL:

http://<gmapIP>:<gmapPort>/rest/putInGroup
HTML


Use this API JSON request payload when making an API call to the GenRocket G-Map Server.

{   "data": [{   "groupName": " ",   "key": " ",   "value": " "  }]}
HTML


REST Payload Example
{   "data": [{   "groupName": "myNamespace.myGroup",   "key": "1",   "value": "test"  }]}
HTML