Posts by Caio Manfredo • 9 points
2 posts
-
0
votes1
answer62
viewsA: Flask Restful - get sub element with reqparse
Solved, I removed the reqparse and redid the code from flask import Flask, jsonify, request @app.route('/recebe', methods=['POST']) def recebeReq(): req = request.get_json() for elem in req: doc=…
-
0
votes1
answer62
viewsQ: Flask Restful - get sub element with reqparse
I’m setting up an API in Flask and the request is as follows: Request: http://127.0.0.1:5000/integra json = {"recev": {"doc":"123456"} } I’m trying to get the key value "doc", but to no avail: from…