mirror of
https://github.com/danbulant/covid
synced 2026-06-16 13:11:34 +00:00
Add documentation
This commit is contained in:
parent
65c951e2d1
commit
fd75aad2cd
2 changed files with 19 additions and 0 deletions
15
docs/README.md
Normal file
15
docs/README.md
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# Documentation
|
||||
|
||||
## Setting it up
|
||||
|
||||
* Clone (either using git or **hub**) this repository
|
||||
* Install dependencies (`npm i`)
|
||||
* Run it! (`npm start`)
|
||||
|
||||
## Format
|
||||
|
||||
Every response is in JSON and contains at least these fields:
|
||||
|
||||
* `code` - HTTP status code
|
||||
* `type` - Type of response, see [types](TYPES.md)
|
||||
* `data` - Might be missing, depends of `type`.
|
||||
4
docs/TYPES.md
Normal file
4
docs/TYPES.md
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
# Types
|
||||
|
||||
* `nothing_to_show` - This page has nothing to show you as of now
|
||||
* `done` - Operation succeeded, without any output
|
||||
Loading…
Reference in a new issue