dlt-hub / dlt-hub/dlt

[rest_api source] Extend the resolve params to fetch an pass a list of parameters

Open
#2,144 3 comments 0 reactions 1 assignee Claimed by @burnash View on GitHub
enhancement question
Dominant language
Python
Stars
5.9k
Forks
600
Avg merge
1d 14h
Merged PRs (30d)
38

Description

### Feature description

Some APIs allow to pass a list of elements to collect further details on some resources, this is a way to limit the number of calls.

The idea would be something like:

```
"params": {
"resource_id": {
"type": "resolve_list",
"field": "id",
"resource": "parent_resource",
"list_size": 100
},
},
```

A few notes:
- this must work with query params (this is where usually you pass arrays). So [this issue](https://github.com/dlt-hub/dlt/issues/1978) needs to be solved too.
- would be nice to sort out [this](https://github.com/dlt-hub/dlt/issues/1873) too.
-

### Are you a dlt user?

Yes, I run dlt in production.

### Use case

APis accepting arrays of elements

### Proposed solution

Add an additional params type

### Related issues

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.