initial cut of rest_api