Retrofit: API Integration Made Easy
Intro to Retrofit: One of the most common tasks we have as developers is to make HTTP requests and interpret their responses. Often times we need to do this using Java and until now, there hasn’t been a concrete way ...
Creating a Mocked RESTful Sandbox Server using Groovy
Introduction At my current client there was a request to create a sandbox version of our RESTful web services to allow users to call into the web services and test them out without changing with ...
ETags and Spring Data REST
ETags are a useful part of HTTP that don’t get a ton of love in our current API-everything world. Luckily, the Spring Data Rest team added support for ETags in their recent 2.3/upcoming 2.3.1 releases ...
Logging REST Exceptions with Spring
To enable logging for REST errors in Spring when using a ResponseEntityExceptionHandler just enable debug on ExceptionHandlerExceptionResolver Without setting debug to true, your errors will still be handled perfectly but you will not receive any ...
Jun 3, 2014
$promise,
$q,
$resource,
$state,
angular,
AngularJS,
API,
data,
factory,
promises,
provider,
resolve,
resources,
REST,
service
Extending Angular’s $resource Service for a Consistent API
One of my favorite modules provided by AngularJS is the ngResource module, because it has intelligent defaults and also allows me to be very flexible configuring resources and REST api calls to match pretty much ...
Introducing Maprest: A Grails Plugin for Customized and Dynamic REST Services
Out of the box, Grails comes with some nice converters for XML and JSON, allowing your REST services to easily render in either of these formats. But these have their limitations. Take, for example, a ...
REST Client Testing With MockRestServiceServer
Functionally testing a REST Client is simple with the new MockRestServiceServer if you are using Spring’s RestTemplate to power the client. This is a new feature in Spring 3.2.x but was available via the spring-test-mvc ...
Brief Introduction to REST
This is from a guest lecture that I delivered to a web-programming class at Bethel University this past month. Brief Introduction to REST Grails Supports REST in various ways: Exposing resources in URL Mappings: static ...
Implementing REST Authentication
While there is not much written about REST authentication, there does seem to be a common theme among the few articles written about it that REST services should be authenticated by signing the query parameters ...