Refactoring API style to be RESTful.