title: Problem about Postman for Deleting with Flask Python
body: <p>I have a simple FLASK-API which is related to authentication, I mean by simple log-in, register page. For the test by backend I use Postman, I also use MySQL for the database. When I am giving ID input from Postman for the delete user, I got an error message. I am dropping my delete route below.</p>
  <h2>@app.route('/delete', methods=['GET', 'POST'])</h2>
  <p>def delete():</p>
  <pre><code>message=''
  
  cursor = mysql.connection.cursor(MySQLdb.cursors.DictCursor)
  
  if request.method == 'POST': 
      for id in request.json.getlist('mycheckbox'):
          print(id)
          cursor.execute('DELETE FROM usertable WHERE id = {0}'.format(id))
          mysql.connection.commit()
      message='Successfully Deleted!'
  return jsonify(message)
  </code></pre>
  <p>I have also log in and register routes, I use POST methods in Postman, and It works well, when I enter the e-mail, username, and password, It gives me jsonify message in postman like &quot;you have successfully logged in, etc. However, if I want to delete a user by giving an ID only</p>
  <p>{</p>
  <pre><code>&quot;id&quot;: &quot;18&quot;
  </code></pre>
  <p>}</p>
  <p>I got this message;</p>
  <p>500 Internal Server Error, The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>