rest api to coop with sample data