First a disclaimer – I am very new to programming. This project is for what's more or less a capstone, and we're working in the Spring Boot framework (Java language, Thymeleaf views).
The overall gist of my program is this: a user fills out a form, and those parameters are used to make a call to the Yelp Fusion API.
I spent a lot of time figuring out how to make the API call, and sort of neglected to think about where to do it. It's currently in my Controller class, but now I'm not so sure if that's the best idea – maybe it should go in a Model or even a DTO? I'd appreciate any insight, as the general internet seems to be conflicted.
Here's the link to the repository on GitHub if that helps.
Thanks!