{"openapi":"3.0.0","info":{"version":"1.0.0","title":"API Documentation","description":"The API Documentation of Team 59 for the assignment 2."},"servers":[{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/csc301-a21/A23.0/1.0.0"},{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/csc301-a21/CSC301-A2-T59/1.0.0"},{"description":"The server URL online","url":"https://csc301-a2-59.herokuapp.com"}],"paths":{"/report_details":{"get":{"description":"Obtain information of the covid database.","parameters":[{"name":"format","in":"query","description":"The format of the data you want to get.","schema":{"type":"string","example":"JSON/CSV"}},{"name":"Province_State","in":"query","description":"The property of filter you want to use of Province_State including Louisiana/Louisiana/Kentucky","schema":{"type":"string","example":"Louisiana/Louisiana/Kentucky"}},{"name":"Country_Region","in":"query","description":"The property of filter you want to use of Country_Region including US, China, Australia","schema":{"type":"string","example":"US/China/Australia"}},{"name":"Date","in":"query","description":"The property of filter you want to use of Date including 2020-01-22/2020-01-23/2020-02-03","schema":{"type":"string","example":"2020-01-22/2020-01-23/2020-02-03"}},{"name":"Confirmed","in":"query","description":"The property of filter you want to use of Confirmed case of covid","schema":{"type":"integer","example":"46/467/969"}},{"name":"Interval","in":"query","description":"The property of filter you want to use of interval to show data in period time of covid","schema":{"type":"string","example":"2020-04-07,2020-04-09"}}],"responses":{"200":{"description":"Successful pull of data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/daily_reports"}},"application/csv":{"schema":{"$ref":"#/components/schemas/daily_reports"}}}},"400":{"description":"Invalid parameter/ filename error"},"500":{"description":"Errors happen in the server"},"404":{"description":"No such data"}}}},"/":{"post":{"description":"Post a csv file to the server","requestBody":{"content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"responses":{"200":{"description":"Successfully post data to the server"},"400":{"description":"Invalid parameter/ filename error"},"500":{"description":"Errors happen in the server"},"404":{"description":"No such data"}}}},"/db-reset":{"get":{"description":"Clear data, so don't need any input","responses":{"200":{"description":"Successfully clear of data"},"500":{"description":"Fail to clear data"}}}}},"components":{"schemas":{"daily_reports":{"description":"Array of daily reports","type":"array","items":{"$ref":"#/components/schemas/daily_report"}},"daily_report":{"description":"Model containing daily report","properties":{"Active":{"type":"integer","example":0},"Combined_Key":{"type":"string","example":"US"},"Confirmed":{"type":"string","example":1},"Country_Region":{"type":"string","example":"US"},"Date":{"type":"string","example":"Wed, 22 Jan 2020 00:00:00 GMT"},"Deaths":{"type":"string","example":0},"Id":{"type":"string","example":2910},"Province_State":{"type":"string","example":""},"Recovered":{"type":"string","example":0}}}}}}