[PR #2931] [CLOSED] feat: postman collection 2.1 export #4144

Closed
opened 2026-03-17 01:42:21 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/2931
Author: @aitchnyu
Created: 2/24/2023
Status: Closed

Base: mainHead: postman-21-export


📝 Commits (5)

  • db88c42 feat: postman 2.1 export
  • 0091e00 Merge branch 'main' of github.com:aitchnyu/hoppscotch into postman-21-export
  • 51fc7da feat: allow exporting teams collection too
  • 51c7870 chore: merge
  • 73b9074 refactor: from pr comments

📊 Changes

7 files changed (+245 additions, -7 deletions)

View changed files

📝 packages/hoppscotch-common/locales/en.json (+1 -0)
📝 packages/hoppscotch-common/src/components.d.ts (+0 -6)
📝 packages/hoppscotch-common/src/components/collections/Collection.vue (+14 -0)
📝 packages/hoppscotch-common/src/components/collections/MyCollections.vue (+8 -0)
📝 packages/hoppscotch-common/src/components/collections/TeamCollections.vue (+6 -0)
📝 packages/hoppscotch-common/src/components/collections/index.vue (+28 -1)
packages/hoppscotch-common/src/helpers/import-export/export/postman.ts (+188 -0)

📄 Description

Closes #2693

Description

Made function for converting Hoppscotch collection into Postman collection. My team Collection has a export as postman button which parses folders and requests recursively, transforms it into a postman collection and downloads as collectioname.postman-collection-export.json.

[ ] Implement it for teams collection
It should work with teams collections. The shape of MyCollection and TeamCollection are different enough and may need some duplicated code.

[ ] Make it work for sub collections
A folder should also be exported as a collection. This is not working due to weird logic for passing collection to the export function.

[ ] Make it work for global export menu
We need to recursively parse all collections and export as a giant collection.

[ ] A system for export

Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

Additional Information


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/2931 **Author:** [@aitchnyu](https://github.com/aitchnyu) **Created:** 2/24/2023 **Status:** ❌ Closed **Base:** `main` ← **Head:** `postman-21-export` --- ### 📝 Commits (5) - [`db88c42`](https://github.com/hoppscotch/hoppscotch/commit/db88c426be23a574118a828b6ddb58a534c80a1c) feat: postman 2.1 export - [`0091e00`](https://github.com/hoppscotch/hoppscotch/commit/0091e001d76c4e601273416b884d9978b6ddcd78) Merge branch 'main' of github.com:aitchnyu/hoppscotch into postman-21-export - [`51fc7da`](https://github.com/hoppscotch/hoppscotch/commit/51fc7dab97cafb949da13e10150e3939461b7fff) feat: allow exporting teams collection too - [`51c7870`](https://github.com/hoppscotch/hoppscotch/commit/51c78701d4a98b0a850c912c0c7796721309f99e) chore: merge - [`73b9074`](https://github.com/hoppscotch/hoppscotch/commit/73b90749b269b18fe636a51c1eb61acbb14a7057) refactor: from pr comments ### 📊 Changes **7 files changed** (+245 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-common/locales/en.json` (+1 -0) 📝 `packages/hoppscotch-common/src/components.d.ts` (+0 -6) 📝 `packages/hoppscotch-common/src/components/collections/Collection.vue` (+14 -0) 📝 `packages/hoppscotch-common/src/components/collections/MyCollections.vue` (+8 -0) 📝 `packages/hoppscotch-common/src/components/collections/TeamCollections.vue` (+6 -0) 📝 `packages/hoppscotch-common/src/components/collections/index.vue` (+28 -1) ➕ `packages/hoppscotch-common/src/helpers/import-export/export/postman.ts` (+188 -0) </details> ### 📄 Description <!-- Thanks for creating this pull request 🤗 Please make sure that the pull request is limited to one type (docs, feature, etc.) and keep it as small as possible. You can open multiple prs instead of opening a huge one. --> <!-- If this pull request closes an issue, please mention the issue number below --> Closes #2693 ### Description <!-- Add a brief description of the pull request --> Made function for converting Hoppscotch collection into Postman collection. My team Collection has a `export as postman` button which parses folders and requests recursively, transforms it into a postman collection and downloads as `collectioname.postman-collection-export.json`. [ ] Implement it for teams collection It should work with teams collections. The shape of MyCollection and TeamCollection are different enough and may need some duplicated code. [ ] Make it work for sub collections A folder should also be exported as a collection. This is not working due to weird logic for passing collection to the export function. [ ] Make it work for global export menu We need to recursively parse all collections and export as a giant collection. [ ] A system for export <!-- You can also choose to add a list of changes and if they have been completed or not by using the markdown to-do list syntax - [ ] Not Completed - [x] Completed --> ### Checks <!-- Make sure your pull request passes the CI checks and do check the following fields as needed - --> - [x] My pull request adheres to the code style of this project - [ ] My code requires changes to the documentation - [ ] I have updated the documentation as required - [ ] All the tests have passed ### Additional Information <!-- Any additional information like breaking changes, dependencies added, screenshots, comparisons between new and old behaviour, etc. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 01:42:21 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#4144
No description provided.