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
Is your feature request related to a problem or a specific use case? Please describe.
Yes. This issue could affect any workflow that would require multiple calls to follow() in their API calls.
Describe the solution you'd like
Currently, Traverson isn't able to configure multiple requests with different parameters, and later parameters override previous ones. This isn't exactly ideal since multiple endpoints can have similar request params (i.e. for pagination, search, etc).
Traverson should support the chaining of withTemplateParameters() calls that only apply to the previous requests without existing parameters of that type (i.e. no parameter overriding if they already exist for a request).
This would enable a much more elegant syntax for requests (shown below).
Is your feature request related to a problem or a specific use case? Please describe.
Yes. This issue could affect any workflow that would require multiple calls to
follow()
in their API calls.Describe the solution you'd like
Currently, Traverson isn't able to configure multiple requests with different parameters, and later parameters override previous ones. This isn't exactly ideal since multiple endpoints can have similar request params (i.e. for pagination, search, etc).
Traverson should support the chaining of
withTemplateParameters()
calls that only apply to the previous requests without existing parameters of that type (i.e. no parameter overriding if they already exist for a request).This would enable a much more elegant syntax for requests (shown below).
Describe alternatives you've considered
Currently this functionality can be achieved with two requests, which is both unwieldy and counter to the goals of Traverson's stated goals.
Additional context
N/A
The text was updated successfully, but these errors were encountered: