Kong / Kong/insomnia

Feature Request - One-click chained/complext multiple request workflows

Open
#3,377 3 comments 0 reactions 0 assignees View on GitHub
C-improvement N-discussion PA-testing S-verified
Dominant language
TypeScript
Stars
40k
Forks
2.4k
Avg merge
2d 13h
Merged PRs (30d)
61

Description

I love this product. I'm familiar with the ability to chain requests, ie pull data from the response of one request and inject it into another request. What I'd like to do is one step further: have a way to run several chained requests with the click of a button in some kind of workflow.

For example, suppose I have three requests that I commonly do back-to-back-to-back:

1. create user
1. create loan information for that user
1. upload a file for that user

I would like to click on one button (or run one request) called "Create User and Loans and Upload File" which would then run those three individual chained requests. Kind of like a script.

A simple approach would let me define a Workflow that runs arbitrary requests in a certain order. It'd be _really_ useful to configure template tags or environment variables per workflow, so I could define a "Create Borrower" workflow and a "Create Borrower With Bad Params" workflow that injects, say, an invalid phone number into the payload of one of the requests.

It's not necessary to have branching logic in such workflows, but that could be nice. For example, if Request 1 returns a 422 then run Request 3 instead of Request 2. Although in that case I would probably just define a new workflow that goes straight from Request 1 to Request 3. I don't think Insomnia needs to be Turing Complete :).

What do you think?

Desmond

Contributor guide

Open the contributing guide

Research direction

Review the existing request-chaining behavior and how individual requests are selected and run; the payload names no files or tests. Define the workflow's ordered requests, variable or template handling, and completion behavior, then validate a one-click three-request sequence.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.