Created a REST controller