openapi-directory
Version:
Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS
1 lines • 5.93 kB
JSON
{"openapi":"3.0.0","info":{"contact":{"email":"api+covid19@h7.org"},"description":"Coronavirus API with free COVID-19 live updates. The best free coronavirus API and COVID-19 update source. Programmatically access live corona virus updates for statistics with historical data, maps, charts, graphs. COVID-19 API and corona virus live updates.","license":{"name":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"},"termsOfService":"https://quarantine.country/coronavirus/api/privacy.html","title":"Coronavirus API","version":"1.0","x-apisguru-categories":["open_data"],"x-origin":[{"format":"swagger","url":"https://quarantine.country/coronavirus/api/swagger.json","version":"2.0"}],"x-providerName":"quarantine.country"},"externalDocs":{"description":"Find out more about Swagger","url":"http://swagger.io"},"tags":[{"description":"Latest data","name":"summary"},{"description":"Chart data","name":"spot"}],"paths":{"/spots/day":{"get":{"parameters":[{"description":"Region short name","in":"query","name":"region","required":true,"schema":{"type":"string"}},{"description":"Date to query spots on","in":"query","name":"date","schema":{"type":"string","default":"Today"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpotsResponse"}}}},"404":{"description":"Unknown region"}},"summary":"Resolve change chart by day","tags":["spot"]}},"/spots/month":{"get":{"parameters":[{"description":"Region short name","in":"query","name":"region","required":true,"schema":{"type":"string"}},{"description":"Date to query spots on","in":"query","name":"date","schema":{"type":"string","default":"Today"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpotsResponse"}}}},"404":{"description":"Unknown region"}},"summary":"Resolve change chart for week","tags":["spot"]}},"/spots/week":{"get":{"parameters":[{"description":"Region short name","in":"query","name":"region","required":true,"schema":{"type":"string"}},{"description":"Date to query spots on","in":"query","name":"date","schema":{"type":"string","default":"Today"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpotsResponse"}}}},"404":{"description":"Unknown region"}},"summary":"Resolve change chart for week","tags":["spot"]}},"/spots/year":{"get":{"parameters":[{"description":"Region short name","in":"query","name":"region","required":true,"schema":{"type":"string"}},{"description":"Date to query spots on","in":"query","name":"date","schema":{"type":"string","default":"Today"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpotsResponse"}}}},"404":{"description":"Unknown region"}},"summary":"Resolve change chart for week","tags":["spot"]}},"/summary/latest":{"get":{"description":"","parameters":[{"description":"Date of the report","in":"query","name":"date","schema":{"type":"string","default":"today"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportResponse"}}}}},"summary":"Get latest coronavirus situation report","tags":["summary"]}},"/summary/region":{"get":{"parameters":[{"description":"Region short name","in":"query","name":"region","required":true,"schema":{"type":"string"}},{"description":"Date of the report","in":"query","name":"date","schema":{"type":"string","default":"today"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportResponse"}}}},"404":{"description":"Region does not exist"}},"summary":"Resolve report for region","tags":["summary"]}}},"servers":[{"url":"https://api.quarantine.country/api/v1"},{"url":"http://api.quarantine.country/api/v1"}],"components":{"schemas":{"Report":{"properties":{"active_cases":{"title":"Active cases number","type":"integer"},"change":{"$ref":"#/components/schemas/Report"},"death_ratio":{"description":"Dead / Total cases","title":"Death ratio","type":"number"},"deaths":{"title":"Deaths number","type":"integer"},"name":{"title":"Region name","type":"string"},"recovered\"":{"title":"Recovered cases number","type":"integer"},"recovery_ratio":{"description":"Recovered / Total cases","title":"Recovery ratio","type":"number"},"total_cases":{"title":"Total registered cases","type":"integer"}},"type":"object"},"ReportResponse":{"properties":{"data":{"properties":{"change":{"$ref":"#/components/schemas/Report"},"generated_on":{"description":"Timestamp report been updated at","type":"integer"},"regions":{"additionalProperties":{"$ref":"#/components/schemas/Report"},"example":{"switzerland":{"active_cases":12585,"change":{"active_cases":-143,"death_ratio":0.0015511152363255273,"deaths":74,"recovered":1096,"recovery_ratio":0.02982392582150012,"total_cases":1027},"death_ratio":0.038445017182130586,"deaths":895,"name":"switzerland","recovered":9800,"recovery_ratio":0.4209621993127148,"total_cases":23280}},"type":"object"},"summary":{"$ref":"#/components/schemas/Report"}},"type":"object"},"status":{"format":"int8","type":"integer"},"type":{"enum":["stack","collection","pagination"],"type":"string"}},"type":"object"},"SpotsResponse":{"properties":{"data":{"additionalProperties":{"$ref":"#/components/schemas/Report"},"example":{"Thu Apr 09 2020 12:20:00 GMT+0000 (Coordinated Universal Time)":{"death_ratio":0.040285703944113994,"deaths":3339,"recovered":77678,"recovery_ratio":0.937200632216498,"total_cases":82883},"Thu Apr 09 2020 12:40:00 GMT+0000 (Coordinated Universal Time)":{"death_ratio":0.040285703944113994,"deaths":3339,"recovered":77678,"recovery_ratio":0.937200632216498,"total_cases":82883}},"type":"object"},"status":{"format":"int8","type":"integer"},"type":{"enum":["stack","collection","pagination"],"type":"string"}},"type":"object"}}}}