FeatureFuel
1

Having an env var point to an attribute of either of multiple responses

Source: Kong/insomnia#3592 · opened by @AmirShitrit
My problem is that I'm trying to test a paging endpoint where paging is done using a continuation token (as opposed to using skip and limit params). In this scenario, requesting the first page not only returns the results, but also a token pointing to the next page. The second page will be requested using the token retrieved from the previous response.
Today, if I want to iterate through N pages, I'll have to create N distinct requests, each retrieving the token from its predecessor.

The solution I'm suggesting, is to have an env var point to response X's attribute and to fallback to response Y's attribute if X hasn't ran yet (being the second/third/... page and Y being the first page).

An alternative would be to enable running custom scripts.

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests