Created
February 1, 2018 11:56
-
-
Save viveksb007/b627457e115b978e1cf27b77fe52929a to your computer and use it in GitHub Desktop.
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('/', methods=['GET']) | |
def index(): | |
return jsonify({ | |
'author': 'Vivek Singh Bhadauria', | |
'author_url': 'http://viveksb007.wordpress.com/', | |
'base_url': 'zeolearn.com/', | |
'endpoints': { | |
'Returns URLS of images': '/magazines/photos/{number of photos}', | |
} | |
}) | |
if __name__ == '__main__': | |
app.run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment