postmanlabs / postmanlabs/postman-code-generators

Please add pm.sendRequest code snippet generator

Open
#191 3 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

codegen
Dominant language
JavaScript
Stars
1k
Forks
381
PR merge metrics
No merged PRs in 30d

Description

Is your feature request related to a problem? Please describe.
Currently, we have around 1200 requests per workspace(we have 3 workplaces). Some of these requests are needed for flow control and since the number of such requests becomes bigger and bigger we decided to move these methods inside dependent requests(Pre-request Script and Tests section with pm.sendRequest )

Describe the solution you'd like
We would like to add one more code snippet generator which will output script with postman pm.sendRequest code.
This will give an easier and faster way of constructing scripts that can be used in Pre-request and Test sections.

Additional context

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no implementation files, tests, or entry points. Start by reviewing the repository's existing code generators and their tests to understand the expected structure; done means a new generator produces usable Postman pm.sendRequest scripts for Pre-request Script and Tests sections.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, postman
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.