Ejemplo n.º 1
0
def helpline_numbers2():
    numbers = COVID_stats()
    helpline_numbers_JSON = numbers.helplineNumbers()
    return jsonify([
        "Now, you don't have to mention version number. Visit Homepage for more API endpoints",
        helpline_numbers_JSON
    ])
Ejemplo n.º 2
0
def state2():
    data = COVID_stats()

    state_data_JSON = data.state_data()
    return jsonify([
        "Now, you don't have to mention version number. Visit Homepage for more API endpoints",
        state_data_JSON
    ])
Ejemplo n.º 3
0
def countryData2():
    data = COVID_stats()

    country_data_JSON = data.covidCountryData()
    return jsonify([
        "Now, you don't have to mention version number. Visit Homepage for more API endpoints",
        country_data_JSON
    ])
Ejemplo n.º 4
0
def helpline_numbers():
    numbers = COVID_stats()
    helpline_numbers_JSON = numbers.helplineNumbers()
    return jsonify(helpline_numbers_JSON)
Ejemplo n.º 5
0
def state():
    data = COVID_stats()

    state_data_JSON = data.state_data()
    return jsonify(state_data_JSON)
Ejemplo n.º 6
0
def countryData():
    data = COVID_stats()

    country_data_JSON = data.covidCountryData()
    return jsonify(country_data_JSON, data.covidTestCount())
Ejemplo n.º 7
0
def globalData():
    data = COVID_stats()
    return json.dumps(data.globalData(), sort_keys=False)
Ejemplo n.º 8
0
def allData():
    data = COVID_stats()
    return jsonify([data.covidCountryData(), data.state_data()])
Ejemplo n.º 9
0
def headlines():
    headlines = COVID_stats()
    headlines_JSON = headlines.headlines()
    return json.dumps(headlines_JSON, sort_keys=False)