I have one html page which contains some data. There is also one button on the same page, when we click that button a new api is called. I want to pass some data from the displaying page as a RequestParam or RequestBody to another api on button click. I am new to thymleaf and UI technology. Could someone please suggest how should I achieve this?
the main api is : http:localhost:8080/home
- There is some data on this page.
- Also we have one button on this page.
I want to send some of the data which is being displayed on page to the another api which gets called after clicking a button.
Api called on button click: http:localhost:8080/data/export (GET api)