Basic REST API implementation.