mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #5652] [MERGED] feat(common): create and manage example responses in collections #5304
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#5304
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/5652
Author: @anwarulislam
Created: 12/3/2025
Status: ✅ Merged
Merged: 12/19/2025
Merged by: @jamesgeorge007
Base:
next← Head:feat/add-example📝 Commits (5)
927b19cfeat: add functionality to create and manage example responses in collections4ab7d09feat: add validation for request data in addExample functionbf09895feat: enhance example response creation with original request handling27734d1fix: adderror.invalid_requestlocale and guardundefinedresponses in add-example flowe38d2befix: avoid JSONC strip crash on empty bodies📊 Changes
6 files changed (+328 additions, -4 deletions)
View changed files
📝
packages/hoppscotch-common/locales/en.json(+4 -1)📝
packages/hoppscotch-common/src/components/collections/MyCollections.vue(+16 -0)📝
packages/hoppscotch-common/src/components/collections/Request.vue(+17 -0)📝
packages/hoppscotch-common/src/components/collections/TeamCollections.vue(+16 -0)📝
packages/hoppscotch-common/src/components/collections/index.vue(+268 -1)📝
packages/hoppscotch-common/src/helpers/utils/EffectiveURL.ts(+7 -2)📄 Description
Introduce the ability to create and validate example responses within collections, enhancing the request management experience. This includes a new modal for adding examples and validation for request data.
Preview
Summary by cubic
Adds the ability to create and save example responses for collection requests, improving request documentation and reuse. Works for both personal and team collections with validation and persistence.
New Features
Bug Fixes
Written for commit
e38d2be60d. Summary will update automatically on new commits.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.