mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #5385] [MERGED] feat: add mock server #5182
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#5182
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/5385
Author: @anwarulislam
Created: 9/15/2025
Status: ✅ Merged
Merged: 10/8/2025
Merged by: @anwarulislam
Base:
mock-server← Head:feat/mock-server📝 Commits (10+)
56f5289feat: add MockServer model to support user-specific mock server configurations96f855efeat: implement mock server creation functionality and UI components8a93917feat: add mock server management dashboard and edit functionality58ff351feat: implement mock server functionality with controller, service, model, and GraphQL support80deb59feat: remove mock server components and related filesb9b86e4feat: add mock server management functionality with creation, update, and deletion support572b12dfeat: implement mock server middleware and controller for subdomain-based routing520b5c3fix: mock server middleware and service with improved request handling and detailed error responses463f554fix: remove unused server icon import from Sidenav componentdab9a1ffeat: add MockServerResolver to the GraphQL schema and update GetMockServer query to use String type for id📊 Changes
28 files changed (+1829 additions, -67 deletions)
View changed files
📝
packages/hoppscotch-backend/prisma/schema.prisma(+84 -67)📝
packages/hoppscotch-backend/src/app.module.ts(+2 -0)📝
packages/hoppscotch-backend/src/errors.ts(+24 -0)📝
packages/hoppscotch-backend/src/gql-schema.ts(+2 -0)➕
packages/hoppscotch-backend/src/mock-server/mock-server.controller.ts(+110 -0)➕
packages/hoppscotch-backend/src/mock-server/mock-server.middleware.ts(+102 -0)➕
packages/hoppscotch-backend/src/mock-server/mock-server.model.ts(+108 -0)➕
packages/hoppscotch-backend/src/mock-server/mock-server.module.ts(+18 -0)➕
packages/hoppscotch-backend/src/mock-server/mock-server.resolver.ts(+102 -0)➕
packages/hoppscotch-backend/src/mock-server/mock-server.service.ts(+384 -0)📝
packages/hoppscotch-backend/src/pubsub/topicsDefs.ts(+3 -0)📝
packages/hoppscotch-common/locales/en.json(+72 -0)📝
packages/hoppscotch-common/src/components.d.ts(+5 -0)📝
packages/hoppscotch-common/src/components/collections/Collection.vue(+17 -0)📝
packages/hoppscotch-common/src/components/collections/MyCollections.vue(+14 -0)📝
packages/hoppscotch-common/src/components/collections/index.vue(+18 -0)➕
packages/hoppscotch-common/src/components/mockServer/CreateMockServer.vue(+320 -0)➕
packages/hoppscotch-common/src/helpers/backend/gql/mutations/CreateMockServer.graphql(+14 -0)➕
packages/hoppscotch-common/src/helpers/backend/gql/mutations/DeleteMockServer.graphql(+3 -0)➕
packages/hoppscotch-common/src/helpers/backend/gql/mutations/UpdateMockServer.graphql(+14 -0)...and 8 more files
📄 Description
Closes FE-1020 #1598
This pull request introduces a new "Mock Server" feature to the backend and frontend, allowing users to create, manage, and interact with mock servers associated with their collections. The implementation includes database schema updates, new service, controller, resolver, and model files.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.