class HelloWorld(Resource):

    def post(self):
        json_data = request.get_json(force=True)
un = json_data['username']
pw = json_data['password']
return jsonify(u=un, p=pw)
api.add_resource(HelloWorld, '/testing')
if __name__ == '__main__':
    app.run(host='0.0.0.0', port=5444, debug=True)
Python Flask-Restful POST not taking JSON arguments