Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 2.39 KB

README.md

File metadata and controls

25 lines (17 loc) · 2.39 KB

covid19trends-rest-api

Security Rating Maintainability Rating Code Smells Coverage Technical Debt Reliability Rating Duplicated Lines (%) 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 :)