Created
April 25, 2015 22:21
-
-
Save Squab/1391b8605c1175253af6 to your computer and use it in GitHub Desktop.
Simple JSON API mock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask, jsonify | |
app = Flask(__name__) | |
@app.route('/') | |
def hello_world(): | |
return jsonify({'text': 'Hello World!', 'name': 'Tim'}) | |
if __name__ == '__main__': | |
app.run(debug=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment