mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #2175] [MERGED] Supporting Raw Body Imports from Postman #3657
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#3657
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/2175
Author: @RishabhAgarwal-2001
Created: 3/18/2022
Status: ✅ Merged
Merged: 3/25/2022
Merged by: @AndrewBastin
Base:
main← Head:2136-postman-import📝 Commits (10+)
23c677bfeat: reorder key-value entries (#2189)770c3f1refactor: revamped tab system1f2fb0frefactor: enable new tab component35571fffix: tab switching side effect4764141fix: tab deleting side effect0f8549cfix: testsc620883feat: body laguage options for importing from postman added4b8270erefactor: handle unknown raw language optiondf3d15crefactor: restructure raw parse checking and valid content-type check for postman content-types51d2100refactor: pm import body calculation and type corrections📊 Changes
24 files changed (+1363 additions, -878 deletions)
View changed files
➕
packages/hoppscotch-app/assets/icons/grip-vertical.svg(+18 -0)📝
packages/hoppscotch-app/components/collections/ChooseType.vue(+10 -3)📝
packages/hoppscotch-app/components/collections/index.vue(+3 -0)📝
packages/hoppscotch-app/components/graphql/RequestOptions.vue(+97 -71)📝
packages/hoppscotch-app/components/graphql/Sidebar.vue(+72 -77)📝
packages/hoppscotch-app/components/http/BodyParameters.vue(+103 -81)📝
packages/hoppscotch-app/components/http/Headers.vue(+86 -64)📝
packages/hoppscotch-app/components/http/Parameters.vue(+83 -59)📝
packages/hoppscotch-app/components/http/RequestOptions.vue(+6 -1)📝
packages/hoppscotch-app/components/http/Sidebar.vue(+14 -7)📝
packages/hoppscotch-app/components/http/URLEncodedParams.vue(+81 -59)📝
packages/hoppscotch-app/components/lenses/ResponseBodyRenderer.vue(+19 -2)📝
packages/hoppscotch-app/components/realtime/Websocket.vue(+75 -50)📝
packages/hoppscotch-app/components/smart/EnvInput.vue(+3 -0)📝
packages/hoppscotch-app/components/smart/Tab.vue(+41 -23)📝
packages/hoppscotch-app/components/smart/Tabs.vue(+93 -51)📝
packages/hoppscotch-app/components/smart/__tests__/Tab.sample(+0 -0)📝
packages/hoppscotch-app/helpers/import-export/import/postman.ts(+92 -36)📝
packages/hoppscotch-app/package.json(+1 -0)📝
packages/hoppscotch-app/pages/profile.vue(+6 -6)...and 4 more files
📄 Description
Closes #2136
Problem Targeted
Users are unable to import postman requests containing raw body with no content-type header.
Description of Solution
Parse raw language options available in PM exported collection JSON to determine the content-type of raw body request.
Checks
Additional Information
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.