postmanlabs / postmanlabs/postman-code-generators

cURL is missing methods

Open
#707 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Describe the bug
When using Desktop and Web App Code Generator (cURL), the output is missing the GET method.

To Reproduce
Steps to reproduce the behavior:

Use either the Postman Desktop or Web App and test any endpoint, and click the Code Generator.

You will notice the GET method is not displayed, you can click the (copy) button and it still doesn't appear when pasting to a text editor. Other methods work though, as you can see in the Loom recording below.

Screenshots

https://www.loom.com/share/90dfe59c63b14099966ad42e90050175

Postman for Mac
Version 10.14.2
UI Version 10.14.2-ui-230513-0653
Desktop Platform Version 10.14.2
Architecture arm64
OS Platform OS X 22.5.0

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

Start by reproducing the issue in the Postman Desktop or Web App Code Generator with a GET endpoint, then trace the cURL generator entry point in this repository. Compare the generated output with other HTTP methods and verify that GET appears both in copied and displayed code.

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
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.