postmanlabs / postmanlabs/postman-code-generators
generate code snippets multiple posts with curl
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1k
- Forks
- 381
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
Generated code of bulk edit mode has only one curl, I understood with new lines generates, multiple request.
If not a bug, would be desirable feature.
To Reproduce
Pasted code:
name:Anjali Mudra (Salutation Seal), variation
img: https://www.yogajournal.com/.image/c_limit%2Ccs_srgb%2Cq_aut…Cw_200/MTQ2MTgwNjczMjg3NzU5Mzky/image-placeholder-title.webp debugger
name:Standing Anahatasana (Heart-Opening Pose)
img: https://www.yogajournal.com/.image/c_limit%2Ccs_srgb%2Cq_aut…Cw_200/MTQ2MTgwNjczMjgxOTkyMjI0/image-placeholder-title.webp
name:Lunar Uttanasana (Lunar Standing Forward Bend)
img: https://www.yogajournal.com/.image/c_limit%2Ccs_srgb%2Cq_aut…Cw_200/MTQ2MTgwNjczMjg4ODA3OTY4/image-placeholder-title.webp
Result:
curl --location --request POST 'http://localhost:8001/api/exes/' \
--form 'name=Somachandrasana II' \
--form 'img= https://www.yogajournal.com/.image/c_limit%2Ccs_srgb%2Cq_aut…Cw_200/MTQ2MTgwNjczMjgxOTkyMjI0/image-placeholder-title.webp' \
--form 'author=3' \
--form 'flow_id=3' \
--form 'description='\'''\''' \
--form '\nname=Transition to Sahaja Ardha Malasana' \
--form 'img= https://www.yogajournal.com/.image/c_limit%2Ccs_srgb%2Cq_aut…Cw_200/MTQ2MTgwNjczMjg4ODA3OTY4/image-placeholder-title.webp' \
--form 'author=3' \
--form 'flow_id=3' \
--form 'description='\'''\''' \
--form '\nname=Sahaja Ardha Malasana (Spontaneous Flowing Half Squat)' \
--form 'img= https://www.yogajournal.com/.image/c_limit%2Ccs_srgb%2Cq_aut…Cw_200/MTQ2MTgwNjczMjgyOTA5NzI4/image-placeholder-title.webp' \
Expected code snippet and corresponding request
curl --location --request POST 'http://localhost:8001/api/exes/' \
--form 'name=Somachandrasana II' \
--form 'img= https://www.yogajournal.com/.image/c_limit%2Ccs_srgb%2Cq_auto:good%2Cw_200/MTQ2MTgwNjczMjgxOTkyMjI0/image-placeholder-title.webp' \
--form 'author=3' \
--form 'flow_id=3' \
--form 'description='\'''\''' &&
curl --location --request POST 'http://localhost:8001/api/exes/' \
--form 'name=Transition to Sahaja Ardha Malasana' \
--form 'img= https://www.yogajournal.com/.image/c_limit%2Ccs_srgb%2Cq_auto:good%2Cw_200/MTQ2MTgwNjczMjg4ODA3OTY4/image-placeholder-title.webp' \
--form 'author=3' \
--form 'flow_id=3' \
--form 'description='\'''\''' &&
curl [...]
Screenshots nope
Additional context
main info "Booting Postman 7.35.0, linux-5.4.0-52-generic on x64"
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the bulk edit mode code that generates curl snippets and compare its output with the issue's single-request result. The change is complete when multiple inputs produce separate curl POST commands joined with &&, matching the expected example; no test file or entry point is named in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100