set up basic crud for api