REST gateway: URI format

By specifying a URI in a specific format, you can access and perform operations on your simple data grid.

URI Format

The REST URI for accessing a simple data grid on the WebSphere® DataPower® XC10 Appliance is of the following format:
/resources/datacaches/[grid_name]/[map_name]/[key]

If you create a simple data grid named MyDataGrid on the appliance with the host name myxc10.ibm.com, then the resulting URL to access key name my.data.item would be:

http://myxc10.ibm.com/resources/datacaches/MyDataGrid/MyDataGrid/my.data.item
In the previous example, the MyDataGrid default map was used in the MyDataGrid grid. This default map does not have any time-to-live (TTL) eviction. Entries that are placed in the data grid stay in the data grid until they are explicitly removed. To configure TTL eviction, see REST gateway example: Time to live (TTL) expiration.
Parent topic: Developing data grid applications with the REST gateway
Related reference:
REST gateway: Data format
REST gateway: REST operations
REST gateway example: Inserting and getting data grid map entries
REST gateway example: Clearing data grid map entries
REST gateway example: Creating dynamic maps
REST gateway example: Time to live (TTL) expiration
REST gateway: Security configuration
REST gateway: HTTP sessions and cookies