#!/usr/bin/python
#
from flask import Flask, Response, json, jsonify

app = Flask(__name__)

@app.route('/hello', methods = ['GET'])
def api_hello():
  data = {
      'hello': 'world',
      'number': 3
      }
  js = json.dumps(data)

  #resp = Response(js, status=200, mimetype = 'application/json')
  resp = jsonify(data)
  resp.headers['Link'] = 'http://github.com'

  return resp

if __name__ == '__main__':
  app.run()


ea0c51daa20c53ebf02b20e0618e9aaade6692be
<mask token>


@app.route('/hello', methods=['GET'])
def api_hello():
    data = {'hello': 'world', 'number': 3}
    js = json.dumps(data)
    resp = jsonify(data)
    resp.headers['Link'] = 'http://github.com'
    return resp


<mask token>

<mask token>


@app.route('/hello', methods=['GET'])
def api_hello():
    data = {'hello': 'world', 'number': 3}
    js = json.dumps(data)
    resp = jsonify(data)
    resp.headers['Link'] = 'http://github.com'
    return resp


if __name__ == '__main__':
    app.run()

<mask token>
app = Flask(__name__)


@app.route('/hello', methods=['GET'])
def api_hello():
    data = {'hello': 'world', 'number': 3}
    js = json.dumps(data)
    resp = jsonify(data)
    resp.headers['Link'] = 'http://github.com'
    return resp


if __name__ == '__main__':
    app.run()

from flask import Flask, Response, json, jsonify
app = Flask(__name__)


@app.route('/hello', methods=['GET'])
def api_hello():
    data = {'hello': 'world', 'number': 3}
    js = json.dumps(data)
    resp = jsonify(data)
    resp.headers['Link'] = 'http://github.com'
    return resp


if __name__ == '__main__':
    app.run()

#!/usr/bin/python
#
from flask import Flask, Response, json, jsonify

app = Flask(__name__)

@app.route('/hello', methods = ['GET'])
def api_hello():
  data = {
      'hello': 'world',
      'number': 3
      }
  js = json.dumps(data)

  #resp = Response(js, status=200, mimetype = 'application/json')
  resp = jsonify(data)
  resp.headers['Link'] = 'http://github.com'

  return resp

if __name__ == '__main__':
  app.run()

