I'm currently following this tutorial (tutorial) to implement a front end on a Springboot application. I've been following along fairly well, until I got to step 3.3- namely, generating a list of clients on the react page.
**The main problem: ** I cannot display clients on the page.
Here's my understanding of how the MVC works: posting this command (curl -X POST http://localhost:8080/clients -d '{"name": "John Doe", "email": "john.doe@baeldgung.com"}') with Postman calls the PostMapping function within the controller to add a new client. The react view calls upon the list of clients and prints them on the page.
Theory as to why it's not working: I'm doing something wrong with Postman. I'm using the browser version of Postman. When I set it to a Get request it gives me a 200. When I switch this to a Post request, I get a 404. How should the request be configured?
Additional questions: Is there a way to check that postman is working within the code? Could I put a print statement in post function of the controller to insure its working? Could I output the list of clients on http://localhost:8080/clients to double check the list? What file controls the output of http://localhost:8080/clients