initial cut for rest_api