Preparing the REST layer.