Add example of registering REST service. Fix typo.