[BUG] - Automation-period and Automation-aggregation headers - key/value are wrong way around, ie key = value and value = key when sent via Automation API #26
Describe the bug
I believe the key/value passed in the headers for the two new items (see screenshot):
automation-period
automation-aggregation
are incorretly sent and actually are swapped around, ie the value is the key and the key is the value, ie
key = today, value = automation-period
instead
key = automation-period, value = today
Steps To Reproduce
Steps to reproduce the behavior:
Create a default new Rest API Workout Automation, JSON, Bath Requests
Do a Manual Export
View the headers passed in on the API web service side (see screenshoot)
Expected behavior
The automation-period and automation-aggregation should be the key's not the values.
Screenshots
Mac (please complete the following information):
The API endpoint is simple C# minimal .Net Core API
iOS/watchOS (please complete the following information):
iPhone SE (3rd Gen)
iOS 18.0 (but also on iOS17)
Version [e.g. 22]
App Version: 8.1.15 (20240828)
Additional context
I am assuing this is a bug otherwise it would be impossible to develop something to ready the headers correctly if the 'key' is constantly changing :-)
Describe the bug I believe the key/value passed in the headers for the two new items (see screenshot):
are incorretly sent and actually are swapped around, ie the value is the key and the key is the value, ie
key = today, value = automation-period
instead
key = automation-period, value = today
Steps To Reproduce Steps to reproduce the behavior:
Expected behavior The automation-period and automation-aggregation should be the key's not the values.
Screenshots
Mac (please complete the following information):
iOS/watchOS (please complete the following information):
Additional context I am assuing this is a bug otherwise it would be impossible to develop something to ready the headers correctly if the 'key' is constantly changing :-)