Created
January 4, 2024 16:15
-
-
Save leolanese/9b77fb3dbe6279631f1e4deb68d50cc1 to your computer and use it in GitHub Desktop.
Quick Python API using web framework Flask
This file contains hidden or 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('/api/intro') | |
def intro(): | |
return jsonify(message='Hello, World!') | |
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