Categorygithub.com/cupakob/covid19trends-rest-api
module
0.0.0-20240906060914-ae3a19fa2749
Repository: https://github.com/cupakob/covid19trends-rest-api.git
Documentation: pkg.go.dev

# README

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 :)

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author