documentation/features/documentation.mdx
When you build a collection in Hoppscotch, documentation is generated for you out of the box. It covers every endpoint with ready-to-use code samples across popular languages. Request information like HTTP method, URL, headers, auth configuration, payload format, and response examples are all captured automatically.
Want to provide more context? Use Markdown to write descriptions for collections, folders, or requests, they'll appear directly in your published docs, helping developers get up to speed faster.
Descriptions make your documentation more useful by providing context beyond the raw request details. You can add descriptions at multiple levels collections, folders, and individual requests using Markdown syntax for formatting, links, images, and code blocks.
Invite team members to your workspace to collaborate on documentation. Changes made to the collection are reflected in the documentation, keeping everything in sync.
Documentation updates automatically as you modify your collection. You need to publish changes to redeploy the documentation.
Automatically generated code snippets for various languages and frameworks help developers integrate with your API quickly.
Display example responses to help users understand what to expect from your API endpoints. You can add multiple examples for different scenarios (e.g., success, error).
Use Markdown to add rich text descriptions, images, and links to your documentation, making it easy to read and understand.
Maintain multiple versions of your API documentation to support different releases and API iterations.
v1.0, v2.0).Versioning helps you maintain backward compatibility documentation while showcasing new features in the latest release.
Each documentation version can be associated with a specific environment (e.g., Production, Staging, Development), allowing you to provide accurate base URLs and variables for that release.
This feature is particularly useful when your API is deployed across multiple environments, allowing you to publish separate documentation versions for each environment (e.g., v1.0-prod, v1.0-staging).
Publishing your documentation makes it accessible to anyone with the link, enabling developers worldwide to understand and integrate with your API. Once published, your documentation serves as a comprehensive guide for your collection, helping users explore endpoints and learn how to interact with your API.
Published documentation automatically includes details for each request in your collection, complete with sample code snippets in multiple programming languages. When auto-sync is enabled, any updates you make to your collection are reflected in the documentation instantly, no need to republish after every change.
<Frame> </Frame>When you publish a collection for the first time, Hoppscotch automatically creates the initial version for you. The documentation will be auto-synced with your collection, meaning any changes you make to the collection will automatically update the published documentation.
After your first publish, you can create additional versions to maintain different releases of your API documentation. Click on "Create Version" to open the publishing options.
<Frame> </Frame>The publishing dialog includes the following options:
v1.0, v2.0).Click Publish to deploy the new version.
After creating a version, a snapshot view of the published documentation opens up. This provides a preview of what your users will see.
The snapshot view displays:
baseUrl) from the attached environment.The published view includes a sidebar for navigating endpoints, a version selector, and the environment indicator showing the associated base URL and variables.