Skip to content

Instantly share code, notes, and snippets.

@viveksb007
Created February 1, 2018 11:56
Show Gist options
  • Save viveksb007/b627457e115b978e1cf27b77fe52929a to your computer and use it in GitHub Desktop.
Save viveksb007/b627457e115b978e1cf27b77fe52929a to your computer and use it in GitHub Desktop.
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