title: python REST server PUT does not update value
body: <p>I have python REST server running and i am trying to update a string via PUT method and after that use a GET method (different client) to retrieve said updated string. But the problem is that GET method gets the old string( in this case "0"). Which one of the methods might be wrong?</p>
  
  <pre><code>from flask import Flask, request, jsonify
  import requests. jsonify
  
  badpackets = "0"
  
  @app.route('/badpkts/&lt;string:badpackets&gt;', methods=['PUT'])
  def post_bad_packets(badpackets):
      badpackets = request.jsonify
      return jsonify(badpackets)
  @app.route('/badpkts/', methods=['GET'])
  def get_bad_packets():
      return jsonify(badpackets)
  </code></pre>