from flask import Flask app = Flask(__name__) @app.route('/') def hello(): return '{"status": {"details": {"code": 200, "message": "working"}}}' @app.route('/api') def hello(): return '{"status": {"details": {"version": "0.1", "code": 200, "message": "working"}}}'