예제 #1
0
def getAnswer():
    val = request.json
    print("Val - ",val)
    df = json_normalize(val)
    df.to_csv('output.csv')
    resp = hellofunction()
    return json.dumps({"key":resp})
예제 #2
0
def getSummary():
    val = request.json
    print("Val - ",val)
    df = json_normalize(val)
    df.to_excel('summaryDataChanged.xlsx')
    resp = hellofunction()
    return json.dumps({"key":resp})
예제 #3
0
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})