added put, post and delete