Skip to main content

GET /geode/v1/{region}/{key}

Read data for a specific key in the region.

Resource URL

http://<hostname_or_http-service-bind-address>:<http-service-port>/geode/v1/{region}/{key}

Parameters

None.

Example Request

GET /geode/v1/orders/1

Request Payload: null
Accept: application/json

Example Responses

Response Payload: application/json

200 OK
Server: Apache-Coyote/1.1
Content-Location: http: //localhost:8080/geode/v1/orders/1
Content-Type: application/json
Transfer-Encoding: chunked
Date: Sat, 18 Jan 2014 21:27:59 GMT

{
"purchaseOrderNo" : 111,
"customerId" : 101,
"description" : "Purchase order for company - A",
"orderDate" : "01/10/2014",
"deliveryDate" : "01/20/2014",
"contact" : "Jane Doe",
"email" : "Jane.Doe@example.com",
"phone" : "020-2048096",
"items" : [ {
"itemNo" : 1,
"description" : "Product-1",
"quantity" : 5,
"unitPrice" : 10.0,
"totalPrice" : 50.0
}, {
"itemNo" : 1,
"description" : "Product-2",
"quantity" : 10,
"unitPrice" : 15.5,
"totalPrice" : 155.0
} ],
"totalPrice" : 205.0
}

Error Codes

Status CodeDescription
400 BAD REQUESTReturned if the supplied key is not found in the region.
404 NOT FOUNDReturned if the region or specified key is not found.
500 INTERNAL SERVER ERRORError encountered at Geode server. Check the HTTP response body for a stack trace of the exception.