mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #5499] [MERGED] feat: API Documentation #5239
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#5239
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/5499
Author: @nivedin
Created: 10/22/2025
Status: ✅ Merged
Merged: 11/25/2025
Merged by: @jamesgeorge007
Base:
next← Head:feat/hopp-doc📝 Commits (10+)
2e11911feat: add documentation schemas1149af3chore: add entry UI to doc503a6d9chore: add doc UI'sd50b563chore: add doc in postman importf44cb6dchore: add doc updates19af366chore: improve curl component and minor cleanup9b5c3aachore: cleanupce4d45efeat: add service worker and add loader6d7f820chore: improve curl view performancec5e3fadchore: scroll to top📊 Changes
85 files changed (+9889 additions, -128 deletions)
View changed files
➕
packages/hoppscotch-backend/prisma/migrations/20251110141554_api_doc/migration.sql(+17 -0)📝
packages/hoppscotch-backend/prisma/schema.prisma(+15 -0)📝
packages/hoppscotch-backend/src/app.module.ts(+2 -0)📝
packages/hoppscotch-backend/src/errors.ts(+31 -0)📝
packages/hoppscotch-backend/src/gql-schema.ts(+2 -0)📝
packages/hoppscotch-backend/src/mock-server/mock-server.resolver.ts(+1 -5)➕
packages/hoppscotch-backend/src/published-docs/input-type.args.ts(+81 -0)➕
packages/hoppscotch-backend/src/published-docs/published-docs.controller.ts(+52 -0)➕
packages/hoppscotch-backend/src/published-docs/published-docs.dto.ts(+19 -0)➕
packages/hoppscotch-backend/src/published-docs/published-docs.model.ts(+118 -0)➕
packages/hoppscotch-backend/src/published-docs/published-docs.module.ts(+14 -0)➕
packages/hoppscotch-backend/src/published-docs/published-docs.resolver.ts(+205 -0)➕
packages/hoppscotch-backend/src/published-docs/published-docs.service.spec.ts(+904 -0)➕
packages/hoppscotch-backend/src/published-docs/published-docs.service.ts(+431 -0)📝
packages/hoppscotch-backend/src/team-collection/team-collection.service.ts(+27 -15)📝
packages/hoppscotch-backend/src/types/CollectionFolder.ts(+28 -2)📝
packages/hoppscotch-backend/src/user-collection/user-collection.service.ts(+23 -19)📝
packages/hoppscotch-cli/src/__tests__/unit/fixtures/workspace-access.mock.ts(+39 -15)📝
packages/hoppscotch-cli/src/utils/workspace-access.ts(+3 -0)📝
packages/hoppscotch-common/locales/en.json(+143 -1)...and 65 more files
📄 Description
Closes FE-1031 BE-663.
Related to #4133.
What's changed
This PR introduces a comprehensive API Documentation feature to Hoppscotch, enabling users to create, edit, and view rich documentation for their API collections and requests. This enhancement transforms Hoppscotch from a pure testing tool into a complete API documentation platform.
This PR's add's the scope to publish a documentation to a public URL so it can be shared across.
Note: This is an initial MVP iteration of the documentation feature. We plan to continue iterating based on community feedback and real-world usage patterns.
https://github.com/user-attachments/assets/92c35626-65bd-4f4e-b157-e59bf347b63e
Backend Changes
(1) Descriptions for collection and requests will be handled by the frontend. Those information will be store as JSON string with other metadata (
data/requestcolumn in database)(2) Publishing a doc
(3) View a doc
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.