Open ArneDePeuter opened 1 week ago
Thanks for the detailed feature request, @ArneDePeuter, and for laying out the use case so clearly! This is a really interesting suggestion. We'll review this further and evaluate how it might be incorporated into rest_api source.
Hi @burnash, the PR referenced satisfies the feature. Hope its useful!
Feature description
Hi!
Currently, in DLT, you can define and resolve parameters dynamically like this:
While this works for some use cases, it's limited in flexibility. Specifically, it does not support dynamic or more generic scenarios, such as resolving parameters for headers or request bodies.
Are you a dlt user?
I'd consider using dlt, but it's lacking a feature I need.
Use case
I need to run data extraction from an API that requires dynamic headers, following these steps:
Authenticate using a login endpoint to retrieve a base token.
Example Workflow:
While this may reflect poor API design, it is a real-world scenario that requires more flexible parameter resolution capabilities.
Proposed solution
EG for dynamic headers:
Related issues
This feature could also hypothetically be extended to support dynamic bodies in the future. While this isn't a current issue for me, it may benefit other use cases where request bodies need to include dynamically resolved fields.