mobile-friendly rest service tutorial