This will work, but data is in same file...
> @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.status_code = 200
> resp.headers['Link'] = 'http://luisrei.com'
> return resp
>
>
--
You received this message because you are subscribed to the Google Groups
"pocoo-libs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pocoo-libs.
For more options, visit https://groups.google.com/d/optout.