Learn java web service using REST