mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #3049] [CLOSED] Postman 2.1 export #4203
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#4203
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/3049
Author: @jfbloom22
Created: 5/10/2023
Status: ❌ Closed
Base:
main← Head:postman-21-export📝 Commits (7)
db88c42feat: postman 2.1 export0091e00Merge branch 'main' of github.com:aitchnyu/hoppscotch into postman-21-export51fc7dafeat: allow exporting teams collection too51c7870chore: merge73b9074refactor: from pr commentsc2d4f07Merge github.com:hoppscotch/hoppscotch into postman-21-exportb75896bfix: issues with parsing hopscotch urls. Successfully exporting and importing into Postman📊 Changes
7 files changed (+17048 additions, -12721 deletions)
View changed files
📝
packages/hoppscotch-common/locales/en.json(+1 -0)📝
packages/hoppscotch-common/src/components/collections/Collection.vue(+15 -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(+193 -0)📝
pnpm-lock.yaml(+16797 -12720)📄 Description
Continues the work on: https://github.com/hoppscotch/hoppscotch/pull/2931
Closes https://github.com/hoppscotch/hoppscotch/issues/2693
Description
@aitchnyu created a function for converting Hoppscotch collections to Postman 2.1.
I continued the work by merging in the latest upstream changes and fixing some issues where the export function was failing to export my 80 request Hoppscotch collection.
[x] In My Workspace Collections, add an Export to Postman Collection option to the popup menu for a collection.
[x] Export a Postman 2.1 collection that will import into Postman successfully.
[ ] 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.
[ ] Should it export the tests? The postman API is different, so they will not work without changes, but it might be nice to at least have a starting point. There are some similar API so some simple find and replace might get it partially there. For instance, it can replace "pw." with "pm.".
Checks
Additional Information
One test failed, but it is also failing for me on main branch.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.