def post(): request = app.current_request return jsonify(request.json)
def home(test): return jsonify(test)
def query_args(): request = app.current_request q = request.args.get("q") return jsonify(q)
def scheduled_job(): headers = app.current_request.headers body = app.current_request.body method = app.current_request.method return jsonify("success")
def main(request): return jsonify(request.json)
def scheduled_job(): return jsonify("success")
def test_string(self): resp = jsonify("hello") assert resp == ("hello", 200, self.headers)
def test_array(self): resp = jsonify([1, 2]) assert resp == ("[1,2]", 200, self.headers)
def test_dict(self): resp = jsonify({"a": "b"}) assert resp == ('{"a":"b"}', 200, self.headers)
def mock_function3(): return jsonify("200")