mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 09:16:03 +03:00
[PR #5609] [MERGED] feat: mock server feature enhancements #5278
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#5278
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/5609
Author: @anwarulislam
Created: 11/24/2025
Status: ✅ Merged
Merged: 11/25/2025
Merged by: @jamesgeorge007
Base:
next← Head:feat/mock-server-starter📝 Commits (10+)
fe5f96bfeat(mock-server): add environment variable management for mock URLs30b88eafeat(common): add messages for creating example collections in environment7271d9cfeat(mock-server): add Pet Store example collection with CRUD requestsed46dbffeat(mock-server): add toggle for creating example collection in mock server setup02bd394feat(mock-server): add Hoppscotch API Mock example with CRUD operations538d2c0feat(mock-server): add comprehensive Hoppscotch API Mock example with CRUD operationsc84ec8efeat(mock-server): add hint for enabling example collection toggle in new collection mode91ace9efeat(mock-server): add hint for new collection name in mock server setupc4b66f8feat(mock-server): add hints for existing and new collections in mock server setupd860219feat(mock-server): implement new mock server configuration and creation modals📊 Changes
16 files changed (+2005 additions, -623 deletions)
View changed files
📝
packages/hoppscotch-common/locales/en.json(+14 -1)📝
packages/hoppscotch-common/src/components.d.ts(+7 -0)📝
packages/hoppscotch-common/src/components/collections/ImportExport.vue(+3 -48)📝
packages/hoppscotch-common/src/components/collections/graphql/ImportExport.vue(+2 -23)📝
packages/hoppscotch-common/src/components/collections/index.vue(+1 -1)➕
packages/hoppscotch-common/src/components/mockServer/ConfigureMockServerModal.vue(+313 -0)➖
packages/hoppscotch-common/src/components/mockServer/CreateMockServer.vue(+0 -543)➕
packages/hoppscotch-common/src/components/mockServer/CreateNewMockServerModal.vue(+548 -0)➕
packages/hoppscotch-common/src/components/mockServer/MockServerCreatedInfo.vue(+93 -0)📝
packages/hoppscotch-common/src/components/mockServer/MockServerDashboard.vue(+1 -7)➕
packages/hoppscotch-common/src/composables/useMockServer.ts(+302 -0)➕
packages/hoppscotch-common/src/helpers/backend/gql/mutations/CreateRESTRootUserCollection.graphql(+8 -0)➕
packages/hoppscotch-common/src/helpers/backend/gql/mutations/CreateRESTUserRequest.graphql(+15 -0)📝
packages/hoppscotch-common/src/helpers/collection/collection.ts(+28 -0)➕
packages/hoppscotch-common/src/helpers/mockServer/exampleCollection.ts(+327 -0)➕
packages/hoppscotch-common/src/helpers/mockServer/exampleMockCollection.ts(+343 -0)📄 Description
Closes FE-1057
This PR Introduce management for mock URLs through environment variables, enhance user experience with messages for creating example collections, and add a Pet Store example collection featuring CRUD requests.
Summary by cubic
Adds automatic environment variable setup, a streamlined existing/new collection flow, and an optional Pet Store example to speed up mock server setup. Introduces creation and configuration modals with start/stop controls and copyable URLs.
Written for commit
d71bc5e52d. Summary will update automatically on new commits.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.