Open eriktumosaryan opened 4 months ago
@eriktumosaryan Here are the types of requests that should be supported, along with their functionalities:
Get the Latest Value:
GET
/data/latest
Get Data for the Last 24 Hours (or Today's Data):
GET
/data/24hours
or /data/today
Get Data for the Last 7 Days:
GET
/data/7days
Get Data for a Specified Period:
GET
/data/period
start_time
and end_time
parameters. Data should be ordered by day. To avoid code duplication with the 7-day request, you could have a general function that both endpoints call, passing different parameters for the time range.@sarzumanyan Jan Please read this recommendations Maybe its will be good for you
device_inner/<device_id>/period
working
device_inner/<device_id>/nearby
working
device_inner/<device_id>/24hours
working
device_inner/<device_id>/latest
working
device_inner/list
working
Write all functions that you think we need to create good backend code. We need all request types that is possible.