mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #5128] feat: added GraphQL support in REST tab #5066
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#5066
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/5128
Author: @chhaviG22
Created: 6/4/2025
Status: 🔄 Open
Base:
main← Head:feature/graphql-rest-integration📝 Commits (2)
578c3ddfeat: added GraphQL support in REST tab60f30b8Merge branch 'main' into feature/graphql-rest-integration📊 Changes
24 files changed (+365 additions, -10 deletions)
View changed files
📝
packages/hoppscotch-common/src/components.d.ts(+1 -0)📝
packages/hoppscotch-common/src/components/http/Body.vue(+14 -2)➕
packages/hoppscotch-common/src/components/http/BodyGraphQL.vue(+150 -0)📝
packages/hoppscotch-common/src/components/http/Request.vue(+10 -1)📝
packages/hoppscotch-common/src/components/http/RequestOptions.vue(+4 -1)📝
packages/hoppscotch-common/src/helpers/RequestRunner.ts(+14 -1)📝
packages/hoppscotch-common/src/helpers/__tests__/editorutils.spec.js(+1 -0)📝
packages/hoppscotch-common/src/helpers/curl/__tests__/detectContentType.spec.js(+7 -0)📝
packages/hoppscotch-common/src/helpers/editorutils.ts(+1 -0)➕
packages/hoppscotch-common/src/helpers/import-export/import/__tests__/importFromInsomnia.spec.ts(+37 -0)➕
packages/hoppscotch-common/src/helpers/import-export/import/__tests__/importFromPostman.spec.ts(+34 -0)➕
packages/hoppscotch-common/src/helpers/import-export/import/__tests__/mockInsomnia.json(+37 -0)➕
packages/hoppscotch-common/src/helpers/import-export/import/__tests__/mockPostman.json(+35 -0)📝
packages/hoppscotch-common/src/helpers/import-export/import/insomniaEnv.ts(+1 -1)📝
packages/hoppscotch-common/src/helpers/import-export/import/postman.ts(+1 -1)📝
packages/hoppscotch-common/src/helpers/kernel/common/content.ts(+1 -0)📝
packages/hoppscotch-common/src/helpers/utils/EffectiveURL.ts(+4 -1)📝
packages/hoppscotch-common/src/helpers/utils/__tests__/contenttypes.spec.js(+1 -0)📝
packages/hoppscotch-common/src/helpers/utils/contenttypes.ts(+7 -2)📝
packages/hoppscotch-data/src/rest/content-types.ts(+1 -0)...and 4 more files
📄 Description
Closes #2172
#2013
#2540
#4395
This PR introduces comprehensive GraphQL support within the REST tab. Enhancements include the addition of
application/graphqlas a body content-type, display and handling of query and variables fields for GraphQL, as well as support for editing, sending, and saving GraphQL requests. Furthermore, the PR integrates GraphQL request capabilities with Insomnia/Postman imports, supports predefined/environment variables. It also includes test cases to ensure functionality and stability.What's changed
Notes to reviewers
https://github.com/user-attachments/assets/5d28eab4-1fc2-4fde-b00a-f555eaf25c88
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.