Ömer Faruk Özdemir - EnesToptas/bounswe2020group6 GitHub Wiki
Hello there! This my wiki page. I am a senior at Bogazici University Computer Engineering. If you wish you can get more information from my github page.
Contact
Update With practice-app
1-I created main flask template.
2-I created structure for scholarly part of the project with open TODO functions.
3-I created an endpoint for plotting any given country as an input, day by day case no.
http://ec2-54-229-68-140.eu-west-1.compute.amazonaws.com/plotCountry?country=turkey
http://ec2-54-229-68-140.eu-west-1.compute.amazonaws.com/plotCountry?country=china
You can change the last part as the input country :)
Here plotDataFetch returns a json with having all covid statistics about the country.
And /api/plot returns this json.
Example:
curl --header "Content-Type: application/json" --request POST --data '{"name":"turkey"}' http://ec2-54-229-68-140.eu-west-1.compute.amazonaws.com/api/plot.png
curl --header "Content-Type: application/json" --request POST --data '{"name":"sweden"}' http://ec2-54-229-68-140.eu-west-1.compute.amazonaws.com/api/plot.png
curl --header "Content-Type: application/json" --request POST --data '{"name":"china"}' http://ec2-54-229-68-140.eu-west-1.compute.amazonaws.com/api/plot.png
Also /plot_country uses this data to plot the graph.