developer.nrel.gov icon indicating copy to clipboard operation
developer.nrel.gov copied to clipboard

Return monthly data with months as integers rather than abbreviated strings

Open GUI opened this issue 10 years ago • 2 comments

Feedback from our API Usability Testing: In the solar resource output, we return monthly data as an object where the keys are month abbreviations (eg, "jan", "mar"). It was suggested that we use integers for months instead (so 1-12), which is a little more universal, and also makes things easier to sort on or iterate through.

GUI avatar Nov 13 '14 22:11 GUI

This was because the original python service returned the data that way.

reger avatar Nov 14 '14 00:11 reger

Yeah, I don't think we can necessarily make changes like this in any of our existing APIs due to backwards compatibility issues, but I think this would be a good thing to generally discuss the next time we're releasing a new version or a new API that deals with months.

GUI avatar Nov 14 '14 01:11 GUI