dlr-eoc / prosEO

prosEO – A Processing System for Earth Observation Data
GNU General Public License v3.0
14 stars 1 forks source link

All REST APIs: Accept date-time values in variable format #137

Open tangobravo62 opened 3 years ago

tangobravo62 commented 3 years ago

Currently most (if not all) of the time values are in fixed format (either with or without microseconds). From the API client perspective it might be helpful, if the same flexibility in parsing date-time values could be applied to the REST API as it is already in the CLI (where apart from the fixed orbit time format like 2020-04-08T00:00:00.000000 also values like 2020-04-08, 2020-04-08T11:30+0200 or 2020-04-08T11:30:45.123456Z are allowed, with the missing parts defaulting to zero values and the UTC time zone, respectively).

katharinabassler commented 1 year ago

This issue is postponed for the time being, as it would involve a design change for convenience issues.

Firstly, it would involve changing those attributes in raml files that accept time values in string format, including a pattern change and ensuring that all allowed patterns are processed correctly. Secondly, it would involve changing those attributes in raml files that accept time values in datetime-only format to accepting string formats, and accordingly adapt all REST services. For now, this was deemed too much effort for the resulting minor gain in convenience.