Wednesday, October 30, 2013

Groovy REST Client

Using RESTClient for Groovy -

Example code:
package restclient

import static

restClient = new RESTClient( 'http://localhost:8080/CustomerDB/webresources/', JSON)
def resp = restClient.get(path: 'entities.customer')
assert resp.status == 200
def respHeaders = resp.getAllHeaders()
respHeaders.each { header ->
println header

No comments:

Book notes: Designing Data-Intensive Applications: The Big Ideas Behind Reliable, Scalable, and Maintainable Systems, by Martin Kleppmann

My notes from the excellent book on how software has evolved to handle data from hierarchical databases to the NoSQL -  https://www.goodrea...