예제 #1
0
def post():
    request = app.current_request
    return jsonify(request.json)
예제 #2
0
def home(test):
    return jsonify(test)
예제 #3
0
def query_args():
    request = app.current_request
    q = request.args.get("q")
    return jsonify(q)
예제 #4
0
def scheduled_job():
    headers = app.current_request.headers
    body = app.current_request.body
    method = app.current_request.method
    return jsonify("success")
예제 #5
0
def main(request):
    return jsonify(request.json)
예제 #6
0
def scheduled_job():
    return jsonify("success")
예제 #7
0
파일: test_app.py 프로젝트: anovis/goblet
 def test_string(self):
     resp = jsonify("hello")
     assert resp == ("hello", 200, self.headers)
예제 #8
0
파일: test_app.py 프로젝트: anovis/goblet
 def test_array(self):
     resp = jsonify([1, 2])
     assert resp == ("[1,2]", 200, self.headers)
예제 #9
0
파일: test_app.py 프로젝트: anovis/goblet
 def test_dict(self):
     resp = jsonify({"a": "b"})
     assert resp == ('{"a":"b"}', 200, self.headers)
예제 #10
0
 def mock_function3():
     return jsonify("200")