Lybron / health-auto-export

This repository provides documentation for the API Export feature of Health Auto Export.
https://healthyapps.dev
119 stars 5 forks source link

[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

Open Developarr-Unlimited opened 2 months ago

Developarr-Unlimited commented 2 months ago

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:

  1. Create a default new Rest API Workout Automation, JSON, Bath Requests
  2. Do a Manual Export
  3. 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 Screenshot 2024-09-02 100453

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 :-)