Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
c2dd080
Merge pull request #790 from postmanlabs/release/v2.0.0
VShingala Mar 10, 2025
a67b59d
duplicate curl for postman cli codegen
KhudaDad414 Nov 4, 2025
ee821c7
Refactor Postman CLI code generator: rename package, update README, a…
KhudaDad414 Nov 5, 2025
848670f
relocate some options for better visibility
KhudaDad414 Nov 5, 2025
78bc331
support some auth options including basic, oauth, hawk etc...
KhudaDad414 Nov 5, 2025
bd44618
fix --form option and remove urlincoded support (needs to be added ba…
KhudaDad414 Nov 5, 2025
f04c2bf
migrate tests for postman-cli
KhudaDad414 Nov 5, 2025
b472bd1
fix test pipeline
KhudaDad414 Nov 5, 2025
3a98b20
remove newman test
KhudaDad414 Nov 5, 2025
523684f
fix some missed options in different files
KhudaDad414 Nov 5, 2025
a8243c7
remove an un-used script and fix a few bugs
KhudaDad414 Nov 6, 2025
11f6a6b
refactore index.js
KhudaDad414 Nov 6, 2025
42abbce
add the debug option and tests for it.
KhudaDad414 Nov 6, 2025
fe5c049
fix failing tests
KhudaDad414 Nov 12, 2025
a5ceba2
chore: Update ubuntu version used for CI as ubuntu 20 is deprecated now
VShingala Nov 12, 2025
ef0bdff
chore: remove v18 from CI and update ubuntu image version for csharp …
VShingala Nov 12, 2025
7313b65
chore: allow non-failing test jobs to complete if other job fails
VShingala Nov 12, 2025
48a96d4
chore: update dotnet sdk version in ci
VShingala Nov 12, 2025
d83518c
Merge pull request #802 from postmanlabs/chore/fix-ci-runners-stuck
VShingala Nov 12, 2025
764d231
Merge branch 'develop' into feature/add-postman-cli-codegen
shamasis Nov 12, 2025
ba67b2a
Merge pull request #801 from postmanlabs/feature/add-postman-cli-codegen
KhudaDad414 Nov 12, 2025
7831d18
Prepare release v2.1.0
web-flow Nov 12, 2025
dff271a
Update CHANGELOG.md
KhudaDad414 Nov 12, 2025
fe5cb79
Update CHANGELOG.md with v2.1.0 chores
shamasis Nov 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ on:

jobs:
Unit-Tests:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
fail-fast: false
max-parallel: 10
matrix:
node-version: [ 18.x, 20.x ]
node-version: [ 20.x ]
language-variant: [ 'csharp-httpclient', 'csharp-restsharp', 'curl', 'dart-dio', 'dart-http', 'golang', 'http',
'java-okhttp', 'java-unirest', 'js-fetch', 'js-jquery', 'js-xhr', 'kotlin-okhttp', 'libcurl',
'nodejs-axios', 'nodejs-native', 'nodejs-request', 'nodejs-unirest', 'objective-c', 'ocaml-cohttp',
Expand Down
14 changes: 12 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,19 @@

## [Unreleased]

## [v2.1.0] - 2025-11-12

### Feature
- Support Postman CLI's request command.

### Chore
- Upgraded build pipeline to use Ubuntu 22 (in response to GitHub Action's deprecation.)

## [v2.0.0] - 2025-03-10

### Breaking Changes

- Dropped support for node < v18.
- Dropped support for node &lt; v18.

## [v1.14.2] - 2025-02-21

Expand Down Expand Up @@ -202,7 +210,9 @@ v1.0.0 (May 29, 2020)
- Add ES6 syntax support for NodeJS Request, NodeJS Native and NodeJS Unirest
- Fix snippet generation for powershell and jquery, where form data params had no type field

[Unreleased]: https://github.com/postmanlabs/postman-code-generators/compare/v2.0.0...HEAD
[Unreleased]: https://github.com/postmanlabs/postman-code-generators/compare/v2.1.0...HEAD

[v2.1.0]: https://github.com/postmanlabs/postman-code-generators/compare/v2.0.0...v2.1.0

[v2.0.0]: https://github.com/postmanlabs/postman-code-generators/compare/v1.14.2...v2.0.0

Expand Down
8 changes: 4 additions & 4 deletions codegens/csharp-httpclient/test/ci-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ set -ev; # stop on error

sudo apt-get update
echo "Installing dependencies required for tests in codegens/csharp-httpclient"
# Install latest .net6.0 sdk
# Install latest .net8.0 sdk
pushd ./codegens/csharp-httpclient &>/dev/null;
wget -q https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
wget -q https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install dotnet-sdk-6.0
dotnet new console -o testProject -f net6.0
sudo apt-get install dotnet-sdk-8.0
dotnet new console -o testProject -f net8.0
# no extra packages needed
popd &>/dev/null;
6 changes: 3 additions & 3 deletions codegens/csharp-restsharp/test/ci-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ set -ev; # stop on error
sudo apt-get update
echo "Installing dependencies required for tests in codegens/csharp-restsharp"
pushd ./codegens/csharp-restsharp &>/dev/null;
wget -q https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
wget -q https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install dotnet-sdk-6.0
dotnet new console -o testProject -f net6.0
sudo apt-get install dotnet-sdk-8.0
dotnet new console -o testProject -f net8.0
pushd ./testProject &>/dev/null;
dotnet add package RestSharp --version 112.0.0
popd &>/dev/null;
Expand Down
72 changes: 72 additions & 0 deletions codegens/postman-cli/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
.DS_Store
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Package manager lock files
yarn.lock
package-lock.json
pnpm-lock.yaml
bun.lockb

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Prevent IDE stuff
.idea
.vscode
*.sublime-*

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
.coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

out/
34 changes: 34 additions & 0 deletions codegens/postman-cli/.jsdoc-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"tags": {
"allowUnknownTags": true,
"dictionaries": ["jsdoc", "closure"]
},
"source": {
"include": [ ],
"includePattern": ".+\\.js(doc)?$",
"excludePattern": "(^|\\/|\\\\)_"
},

"plugins": [
"plugins/markdown"
],

"templates": {
"cleverLinks": false,
"monospaceLinks": false,
"highlightTutorialCode" : true
},

"opts": {
"template": "./node_modules/postman-jsdoc-theme",
"encoding": "utf8",
"destination": "./out/docs",
"recurse": true,
"readme": "README.md"
},

"markdown": {
"parser": "gfm",
"hardwrap": false
}
}
74 changes: 74 additions & 0 deletions codegens/postman-cli/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
### NPM Specific: Disregard recursive project files
### ===============================================
/.editorconfig
/.gitmodules
/test

### Borrowed from .gitignore
### ========================

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Prevent IDE stuff
.idea
.vscode
*.sublime-*

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
.coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

out/
Loading
Loading