You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current syntax for defining relationships between resources in the rest_api source is verbose and requires explicit configuration of parameter resolution. This makes the configuration more complex than necessary, especially for common parent-child relationships were only a simple field reference is needed.
burnash
changed the title
rest_api: simplify dependent resource relationship configuration with parent field
rest_api: simplify dependent resource relationship configuration
Jan 9, 2025
this is a nice idea, but I wonder if it can be extended to handle also "aggregates".
An example of aggregates is an endpoint which can provide details for multiple resources (within limits) if passed as an array in a json.
One idea could be something like (to get chunks of 100 user ids)
👍 I've needed to fall back to using the REST Client rather than REST API Source due to a 3rd party API only accepting params via request body instead of path or query params.
Background
The current syntax for defining relationships between resources in the rest_api source is verbose and requires explicit configuration of parameter resolution. This makes the configuration more complex than necessary, especially for common parent-child relationships were only a simple field reference is needed.
Current syntax:
Proposal
resources.<resource_name>.<field_name>
incremental
object to template stringsresolve
mechanism would be kept for backward compatibilityNew syntax:
For path templates:
For query parameters:
For query parameters with incremental sync:
So the HTTP request for
issue_comments
resource would be:(this should fix #1978 but with a different syntax)
Benefits:
Additional Examples:
Multiple field references:
Nested field access (TBD, how to define JSONPath expressions):
The text was updated successfully, but these errors were encountered: