def create_review(header, body, owner): new_review = Review(header=header, body=body, owner=owner) db.session.add(new_review) db.session.commit() return jsonify(new_review.as_dict())