EIDA / eida-statistics

Aggregated statistics of EIDA nodes
GNU General Public License v3.0
0 stars 0 forks source link

Allow plain dates in start/end parameter #15

Closed jschaeff closed 1 year ago

jschaeff commented 1 year ago

The query /query?start=2022-06-01 should be accepted. Currently it gives:

BAD REQUEST: invalid value of parameter 'end'

jschaeff commented 1 year ago

Only accept full days in parameter, no time specification.

vpet98 commented 1 year ago

I made it to accept dates only in format 2022-06 (without day). If it is to accept 2022-06-01 as end date, should it return statistics for the whole month of June or until end of May? It seems kind of ambiguous.

jschaeff commented 1 year ago

Sorry, you're right. It's better to keep it like this (I was too quick)