MCPcopy Create free account
hub / github.com/pallets/flask / post_json

Function post_json

tests/test_json.py:20–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18
19 @app.route("/json", methods=["POST"])
20 def post_json():
21 flask.request.get_json()
22 return None
23
24 rv = client.post("/json", data=None, content_type="application/json")
25 assert rv.status_code == 400

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected