mirror of
https://github.com/danbulant/covid
synced 2026-06-16 21:21:15 +00:00
Docs for country and global endpoints
This commit is contained in:
parent
ef10c5f0b4
commit
0caa052ab3
2 changed files with 11 additions and 2 deletions
|
|
@ -2,12 +2,12 @@
|
|||
|
||||
## country
|
||||
|
||||
`/country/:country`
|
||||
`/country/:country` -> `country` || `e_country_not_found`
|
||||
|
||||
Shows information about given country.
|
||||
|
||||
## global
|
||||
|
||||
`/global`
|
||||
`/global` -> `country_global`
|
||||
|
||||
Shows global informations.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,13 @@
|
|||
# Types
|
||||
|
||||
## Normal types
|
||||
|
||||
* `nothing_to_show` - This page has nothing to show you as of now
|
||||
* `done` - Operation succeeded, without any output
|
||||
* `country` - Information about some country
|
||||
* `country_global` - Global information, in format of `country`
|
||||
|
||||
## Error types
|
||||
|
||||
* `e_country_not_found` - Given country couldn't be found
|
||||
* `e_internal` - Internal server error
|
||||
|
|
|
|||
Loading…
Reference in a new issue