I want to know the answer to the following question:
What was the name of the treaty that ended the war?
All the background I'm provided with is that "The Treaty of Guadalupe Hidalgo, signed on February 2, 1848, by American diplomat Nicholas Trist and Mexican plenipotentiary representatives Luis G. Cuevas, Bernardo Couto, and Miguel Atristain, ended the war, gave the U.S. undisputed control of Texas, and established the U.S.–Mexican border of the Rio Grande.". Is that enough to answer the question?
Answer: yes