I'm in a tricky situation, I'm mainly a frontend dev working in react but I got into a project where i need to create an API with some endpoints in various languages. I have done Python and dot Net already. Now it's time for Java. I'm totally new to all the backend languages except nodejs so sorry if I'm incorrect on some things.
I've set up a Java project with a Tomcat web server. I can run it locally on port 8080. I want to create a simple API with 3 endpoints that only returns some text. What is the simplest way of doing this? Thank you!