mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #2931] [CLOSED] feat: postman collection 2.1 export #4144
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#4144
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/2931
Author: @aitchnyu
Created: 2/24/2023
Status: ❌ Closed
Base:
main← Head:postman-21-export📝 Commits (5)
db88c42feat: postman 2.1 export0091e00Merge branch 'main' of github.com:aitchnyu/hoppscotch into postman-21-export51fc7dafeat: allow exporting teams collection too51c7870chore: merge73b9074refactor: 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 postmanbutton which parses folders and requests recursively, transforms it into a postman collection and downloads ascollectioname.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
Additional Information
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.