So I started building an api rest. I have some routes working succesfully. I want to try the get and post requests that i´ve tried with the a rest dev tool (insomnia/postman), but with a basic front end.
But I´m finding quite difficult to find resources to something as simple as this.
I know some React, so I dont mind if using it would facilitate achieving this, but please I would appreciate some direction:
For example I have get route that gets all of the “tests” in the database (im builing a quiz app). I already have the button in the front-end that says “search tests”. So now how can I make that button in the html to “talk” with the api rest? Lets just not say to actually print the result, but at least that first part.
Any help would be appreciate, just need some direction here or an advice where should i look more info