Made the REST API consistent.