covid19trends-rest-api

module
v0.0.0-...-e0e3a30 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2023 License: MIT

README

covid19trends-rest-api

Security Rating Maintainability Rating Code Smells Coverage Technical Debt Reliability Rating Vulnerabilities Bugs

REST API for covid19-trends.de

Endpoints

There is only one endpoint currently

/fetch/{countrycode}

Validation

The country code must be 2 chars long and uppercase, e.g.

  • valid: 'US'
  • invalid: 'us'

Response

  • If you give a country code, which can't be matched to a country, the response status is 404.
  • If the data can't be fetched from the remote source, the status is 500
  • If the country code is invalid, the response status is 400
  • If okay - 200 :)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL