-1

I am developing a website in Python Flask & I am writing a API for this (to access via app). I want to know the best practices I need to consider in terms of logging, error handling, sending responses....
Here is what I am doing right now:
@app.route("/api/diagnose", methods=['GET', 'POST'])
...