Skip to content

feat(postman): import environments, zips and big collections from Postman - #6

Merged
leanderva merged 7 commits into
masterfrom
feat-postman-import-all
Nov 6, 2026
Merged

leanderva merged 7 commits into
masterfrom
feat-postman-import-all

Conversation

@leanderva

Copy link
Copy Markdown
Collaborator

What

Everything the team exports from Postman can be imported, including the large marketplaces collection that failed before.

  • Environments and globals, with the secret type kept. Disabled variables are left out and counted. Globals come in as an environment named Globals.
  • Several files at once, and the .zip of a workspace export. Files in the zip that are neither a collection nor an environment are skipped.
  • The file is read in the browser. The marketplaces collection is 11 MB of JSON, above the 5.5 MB the API takes per request. After the conversion it is 4.5 MB and it saves.
  • Saved responses over 100 KB are cut, with a warning. Five of them in that collection were between 100 KB and 1.5 MB.
  • A collection that is still over 5 MB after the import is refused with its size and a hint to split it in Postman.
  • bun run postman:export downloads every collection and environment through the Postman API. The key is read from the environment only.

Not covered

Scripts and tests of requests (already out of scope), mocks, flows and monitors. Postman's API does not give globals, so they are exported by hand.

How it was tested

  • bun run test:ci: 252 tests pass. bun run build passes.
  • Browser run with the real marketplaces file: 1,439 requests, 4.5 MB saved, and the documentation view opens.
  • The importer reads every file of the team's Postman export folder: 4 collections and 15 environments.
  • The export script was tested against a fake Postman API only, not the real one. The real zip of a workspace export was not available, so the zip reader was tested with a zip built in the same format.

Refs: TEC-3584

@leanderva leanderva self-assigned this Nov 6, 2026
@leanderva leanderva added the enhancement New feature or request label Nov 6, 2026
@leanderva
leanderva merged commit 7cc893d into master Nov 6, 2026
5 checks passed
@leanderva
leanderva deleted the feat-postman-import-all branch November 6, 2026 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant