Added REST class and example implementation.