added api post with tests