Thanks for the feedback! I should make it more gen...
# advanced-need-help
x
Thanks for the feedback! I should make it more generic but since the solution was not too bad, I just created a custom dataset (not to mess with Kedro's code) based on the APIDataset. catalog.yml
Copy code
run_histograms:
  type: dqm_playground_ds.extras.datasets.tuned_API_dataset.TunedAPIDataSet
  url: https://xxx/
  credentials: dqm_playground_token
  headers: credentials
credentials.yml
Copy code
dqm_playground_token:
  - Authorization: Token <token>
tuned_API_dataset.py (similar to kedro's api_dataset.py)
Copy code
python3
        auth = credentials or auth

        # Added the following three lines :)
        if headers == "credentials":
            auth = None
            headers = credentials[0]
Not great, not terrible. 🙂 Thanks again!