adding post and delete api