added new endpoint url and put and post methods