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