Implementing the rest resource service for the front end access to the predictions.