Examples Gallery
Browse interactive examples, theming recipes, layout styles, and OpenAPI 3.1 features. Click any card to launch the live demo or guide.
Open API Example
Swagger's Pet Store in OpenAPI 3.2, with QUERY and additionalOperations; Try calls the live server.
Streaming (OpenAPI 3.2)
Server-Sent Events and JSON Lines described with itemSchema; Try shows each event as it arrives, from the in-browser mock.
Themes and Colors
Match your corporate brand by customizing primary accents, headers, backgrounds, and text colors.
CSS Styling
Customize using CSS variables and CSS Shadow Parts for deep layout and style control.
Rendering Modes
Choose between 3 distinct presentation styles to best fit your audience.
Built In Console
Call and test live API endpoints directly within the documentation, with support for negative and edge-case testing.
In-Browser Mock Server
Answer requests from the spec inside the page. Pick a status code and a delay, then call the API with fetch() and see the mock's answer.
<rapi-doc-mini>Endpoints in a Blog Post
rapi-doc-mini puts one endpoint, or a few chosen with filter-operations, with its Try console inside an article, a tutorial or a changelog. Live embeds, several APIs on one page, and the error state for a missing spec.
<rapi-pdf>OpenAPI to PDF
rapi-pdf turns the Petstore spec into a PDF in the browser, as the default document or with schemas as tables and examples, downloaded.
Model Context Protocol (MCP) Server
Generate token-efficient, agent-friendly MCP servers from OpenAPI specs. Contrasts curated agent tooling vs plain 1:1 conversion.
<rapi-flow>Arazzo Workflows
Draw the workflows of an Arazzo spec with the rapi-flow element, next to the rapi-doc reference; click a step to open its operation, run the workflow against the real Petstore API or the in-browser mock, or load any Arazzo spec by URL.
<rapi-flow><rapi-doc-mini>Arazzo Workflow Across APIs
One Arazzo workflow using three different OpenAPI specs - Rapid Parcels' ship-a-parcel gets a quote, books a shipment, fetches its label and subscribes to tracking. rapi-flow pairs each spec with its own rapi-doc-mini, showing only the operations the workflow calls in it, and runs end to end against the in-browser mock.
Schema Styles
Inspect data models using Tree or Tabular representations, and toggle between Schema and Example views.
Navigation Styles
Customize navigation sidebar styles, item spacing, active indicators, and endpoint grouping.
Slots - HTML Injection
Inject custom HTML content, warning banners, company logos, and navigation links into Shadow DOM slots.
Markdown
Rich Markdown rendering inside API descriptions, including tables, formatted lists, and callout blocks.
Markdown Headings in Navigation
Automatically convert Markdown headers inside descriptions into interactive navigation links.
Links
Create deep cross-references and external links between operations, schemas, and external documentation.
Arrange By Tags
Group and order endpoints in the sidebar with the OpenAPI `tags` array, the x-tagGroups extension, or OpenAPI 3.2 nested tags (`parent`).
Endpoint Badges
Annotate operations with custom color-coded status badges (Beta, Deprecated, Internal) using x-badges.
Filter Operations
Show only some of a spec's operations with filter-operations, by operationId, method and path, path glob, tag or badge, and leave others out with ! terms.
Syntax Highlighting
Built-in syntax highlighting for cURL, JavaScript, Python, Go, and 20+ programming languages.
Code Samples
Display multi-language code snippets on operations using the OpenAPI x-code-samples vendor extension.
Add Your Examples
Provide multiple request and response payload examples to illustrate edge cases and error scenarios.
File Upload
Interactive testing for endpoints accepting binary files, document uploads, and streaming data.
Binary Response
Handle and download binary responses such as PDF documents, image assets, and archive files.
Multipart Formdata
Submit mixed content combining binary files with structured JSON fields using multipart/form-data.
Multiple Request Body
Document endpoints supporting alternate payload formats such as JSON, XML, or plain text.
Dynamic Parameters
Inject dynamic query, path, and header parameters at runtime without pre-specifying them in the schema.
OAuth
Interactive OAuth 2.0 demonstration covering implicit flow, authorization code, and token refresh.
OAuth Extensions
Pre-populate client IDs, client secrets, and default scopes using x-client-id and x-default-scopes vendor extensions.
Authentication (Multiple)
Configure complex multi-layered security schemes including API Keys, Bearer JWT, and Basic Auth.
API Key as RapiDoc Attribute
Declaratively set and programmatically update API keys via DOM attributes or JavaScript properties.
Embed RapiDoc In HTML
Seamlessly co-exist with existing HTML pages, headers, footers, and enterprise design systems.
JSON Object as OpenAPI Spec
Pass in-memory JavaScript objects directly to RapiDoc without needing an external URL or file fetch.
Define API Server Using Template
Support dynamic multi-environment server URLs using variable substitution and template parameters.
Callback
Document asynchronous webhooks and subscription callbacks triggered by client requests.
Multiple DataTypes
Utilize OpenAPI 3.1 multi-type declarations conforming to the latest JSON Schema specifications.
No matching examples found
Try searching for a different keyword or reset the category filters.