added post and get to rails api