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:

Using a Console Cable (USB TTL Serial Cable) with Raspberry Pi 3

A console cable provides terminal access to Raspberry Pi from say a laptop host without requiring to connect a monitor to Pi's HDMI port...