I am trying to create a site that displays data and having the user “filter out” the entries displayed by selecting several options.
I am really new to working with a backend and with requests.
My backend is Python and my frontend is JS/JQuery and HTML
My plan is to
- Send a POST request from Javascript with the value the user inputs (or selects from a dropdown menu)
- Python should receive the request, perform an operation, and update the data.
- Show updated data on Javascript.
My question is, can I send the updated data in the response of the POST request, or should I make a GET request after the POST request?