data routes done

This commit is contained in:
newtbot
2024-01-12 18:03:51 +08:00
parent 21edf3aa07
commit b3f2f4e5f6
4 changed files with 138 additions and 60 deletions

3
api.MD
View File

@ -157,4 +157,5 @@ curl 'http://localhost/api/v0/sensor-data/data?year=2023&month=1&week=1&day=1&se
//get specific data
http://localhost/api/v0/sensor-data/filter?windspeed=highest&limit=1
//average
//pagination
http://localhost/api/v0/sensor-data/data?week=1&sensorid=1&locationid=1&page=2&pagesize=10