got api and crud working