GET /users/items?returned=false <---- this the url.
Now what i need to do is to create an endpoint that will check on my database for the return status of an item if it is false then all of the items will be returned. I can do everything from checking the db for the return status of an item. What i dont know is how to wtite the URL for the endpont such that when a user vists that endpoint , he or she gets the items whose return status is false. I hope this gives the picture of what i cant implement
since i cantot do this as it wont work
@app.route("/users/items?eturned=false", methods = ['GET'])
def items_unreturned()
.........
Now what i need to do is to create an endpoint that will check on my database for the return status of an item if it is false then all of the items will be returned. I can do everything from checking the db for the return status of an item. What i dont know is how to wtite the URL for the endpont such that when a user vists that endpoint , he or she gets the items whose return status is false. I hope this gives the picture of what i cant implement
since i cantot do this as it wont work
@app.route("/users/items?eturned=false", methods = ['GET'])
def items_unreturned()
.........


