traewelling icon indicating copy to clipboard operation
traewelling copied to clipboard

[APIv1] Changes to Statistics

Open jheubuch opened this issue 3 years ago • 0 comments

In my opinion it would be useful to change the data format of the api/v1/statistics endpoint.

In the "purpose" Array, the business types are delivered as a string (e.g. "private", "commute", ...). Instead it would be more useful to deliver those with the correlating Enum ID which is also used for e.g. checking into a connection (private = 0, commute = 2 etc).

Also the duration is delivered as a string. It could be delivered as a number.

image

jheubuch avatar Jan 10 '22 14:01 jheubuch