def getAnswer(): val = request.json print("Val - ",val) df = json_normalize(val) df.to_csv('output.csv') resp = hellofunction() return json.dumps({"key":resp})
def getSummary(): val = request.json print("Val - ",val) df = json_normalize(val) df.to_excel('summaryDataChanged.xlsx') resp = hellofunction() return json.dumps({"key":resp})
def getAnswer(): requestObj = request.json print("Val - ", requestObj) global schemeName schemeName = requestObj["schemeName"] print("Scheme Name ====> " + schemeName) global schemeCate schemeCate = requestObj["schemeCate"] print("Scheme Category ====> " + schemeCate) df = json_normalize(requestObj) df.to_csv('output.csv') resp = hellofunction() return json.dumps({"key": resp})