This project has moved and is read-only. For the latest updates, please go here.

Web Services: GetValues returns all values when only startDate is specified


In Web Services - REST Service Test when I set the startDate and I don't set the EndDate, I get all of the data values for the site and variable. I have the same problem when I set the endDate but don't set the startDate.

Correct behaviour should be:
If I set only startDate: Return all values after the startDate
If I set only endDate: Return all values before the endDate

This problem is in the GetValues and in the GetValuesObject methods.


xenomorph1030 wrote Apr 2, 2015 at 2:50 PM

Right now in the code, it will only use the startDate and endDate if both are supplied. If only one, it ignores it. I agree with your suggestion on what the correct behavior should be.