By gdhjones
via city81.blogspot.co.uk
Published: Feb 27 2013 / 08:41
Whilst previous posts have looked at the use of RESTClient, this post will concentrate on its parent class, HTTPBuilder and also touch briefly on the JSONBuilder class. This post will cover the building and parsing of JSON, converting JSON to and from POJOs, adding authentication headers and handling response success and failures.
Comments
octix replied ago:
Nice, but POSTing to get a list of customers seems odd...
gdhjones replied ago:
The code sample was adapted from a real life example where it had to be a POST but in general such a request would be a GET.
Voters For This Link (6)
Voters Against This Link (0)