-4
I did a CRUD with Spring Boot, MVC, Security and other Spring modules. For the front-end I used Thymeleaf. Apparently everything is working, but in the problem description asks "The application should contain some Rest Apis for external consumption: registration and consultation of users and resources".
What should I change on my app? Switch from @Controller to @Restcontroller? controller method returns can continue to return Modelview and String or have to return Responseentity? Can the front end continue with Thymeleaf? What exactly does the external consumption of the Rest API have to do? Only answer the JSON request to Postman?
Hello good morning leo, yes my dear @Restcontroller, Modelandview not because now you will not have a View, the Api will be consumed by any client so JSP, JSF, PHP, Postman, and or even a Web application Spring +Thymeleaf, HTML + Jq, who consume will have to indicate the end-point ex http://localhost:8080/api/users the return may be a JSON but it may be an XML, Text ..... This is negotiable, go ahead you’re close.
– Robson