showing how to develop a rest api with spring mvc