이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 10. The REST API
Red Hat JBoss Data Grid provides a REST interface. The primary benefit of the REST API is that it allows for loose coupling between the client and server. The need for specific versions of client libraries and bindings is also eliminated. The REST API introduces an overhead, and requires a REST client or custom code to understand and create REST calls.
To interact with JBoss Data Grid's REST API only requires a HTTP client library. For Java, the Apache HTTP Commons Client is recommended. Alternatively, the java.net API can be used.
Important
The following examples assume that REST security is disabled on the REST connector. To disable REST security remove the
authentication
and encryption
parameters from the connector.
10.1. Ruby Client Code 링크 복사링크가 클립보드에 복사되었습니다!
링크 복사링크가 클립보드에 복사되었습니다!
The following code is an example of interacting with Red Hat JBoss Data Grid REST API using ruby. The provided code does not require any special libraries and standard net/HTTP libraries are sufficient.
Example 10.1. Using the REST API with Ruby