sqlite db has table with several columns one of them is called “country” for example
The GET code is:
@app.route(‘/api/users’, methods=[‘GET’])
This will list ALL records.
How do I change this line for me to be able to FILTER json result to ONLY specific country
for example in my request url …/api/users/?country=USA
How I do that?
I used google BARD with the following prompt
“create api using flask sqlite get with parameters”
Thank you AI !!!