title: Passing HTTP parameters from request url with Flask
body: <p>Below is the code I'm using for Simple REST API. It is working fine.
  The REST URL is like <a href="http://127.0.0.1:8080/sample/100" rel="nofollow noreferrer">http://127.0.0.1:8080/sample/100</a>
  But I need to pass 100 as a key value pair like <a href="http://127.0.0.1:8080/sample?runtime=100" rel="nofollow noreferrer">http://127.0.0.1:8080/sample?runtime=100</a>. Is this possible or any other python library that will help</p>
  
  <pre><code>app = Flask(__name__)
  api = Api(app)
  
  class Analysis(Resource):
  def get(self, runtime):
     result2 = result1.to_json(orient='records')
     return json.loads(result2)
  
  api.add_resource(Analysis, '/sample/&lt;runtime&gt;')
  
  if __name__ == '__main__':
     app.run(port='8080')
  </code></pre>