Initial REST API for terminals