Implement stub download for rest api