updated api docs
This commit is contained in:
parent
9899b27e5f
commit
0b53a08123
1 changed files with 21 additions and 1 deletions
22
README.md
22
README.md
|
@ -8,7 +8,27 @@ A (hopefully soon) fully featured selft-hosted web interface and server-backend
|
|||
|
||||
# API docs
|
||||
|
||||
## location data
|
||||
## get locations
|
||||
triggered by setting no GET parameter at all
|
||||
### Parameters
|
||||
<no>
|
||||
### Tags
|
||||
- id
|
||||
- locationname
|
||||
- latitude
|
||||
- longitude
|
||||
- countryname
|
||||
|
||||
## get location data
|
||||
triggered by setting GET parameter 'locId' to a vaild location id
|
||||
### Parameters
|
||||
- locId: id of the location to display
|
||||
- range: range of the data to display in unix time
|
||||
- from
|
||||
- to
|
||||
- max vals: maximum measvals to be transmitted; if more are present in the timespan, the avarage will be calculated
|
||||
|
||||
### Tags
|
||||
- id
|
||||
- locationname
|
||||
- latitude
|
||||
|
|
Loading…
Reference in a new issue