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 ])
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 ])
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 ])
def helpline_numbers(): numbers = COVID_stats() helpline_numbers_JSON = numbers.helplineNumbers() return jsonify(helpline_numbers_JSON)
def state(): data = COVID_stats() state_data_JSON = data.state_data() return jsonify(state_data_JSON)
def countryData(): data = COVID_stats() country_data_JSON = data.covidCountryData() return jsonify(country_data_JSON, data.covidTestCount())
def globalData(): data = COVID_stats() return json.dumps(data.globalData(), sort_keys=False)
def allData(): data = COVID_stats() return jsonify([data.covidCountryData(), data.state_data()])
def headlines(): headlines = COVID_stats() headlines_JSON = headlines.headlines() return json.dumps(headlines_JSON, sort_keys=False)