Added stubbed REST API implementation.