Test REST API