api creation and testing