REST gateway: REST operations

You use HTTP POST, GET, and DELETE operations to insert or update, get, and remove data from the data grid. The REST gateway also supports HTTP requests to manage a grid alias that points to your data grid. Grid aliases are useful when you need to populate more than one data grid at a time and need to switch between them. Grid aliases can be created, queried, and deleted and uses the REST resource/resource/gridalias.

REST operations to populate the data grids

Table 1. Operations with equivalent HTTP methods and response code definitions
Operation HTTP Method Response Code
Insert or update POST
  • 200 CREATED: The data was successfully inserted or updated into the data grid.
  • 400 BAD REQUEST: The data insert or update operation did not complete successfully.
Get GET
  • 200 OK: The response body and content-type are retrieved from a previous insert or update operation.
  • 404 NOT FOUND: The specified key is not present in the data grid.
  • 400 BAD REQUEST: The data grid was unable to process the request.
Delete DELETE
  • 200 NO CONTENT: The entry was deleted from or not found in the data grid.
  • 400 BAD REQUEST: The data grid was unable to process the request.