completed machine REST api CRUD