Integrations
OpenAPI
Generating docs for OpenAPI schema
Manual Setup
Install the required packages.
Generate Styles
The interactive UI of OpenAPI integration is styled with Tailwind CSS, it doesn't include a pre-built stylesheet. You must use it with Tailwind CSS configured.
Add the package to @source
in your Tailwind CSS configuration.
Configure Pages
Create an OpenAPI instance on the server. Fumadocs OpenAPI renders the pages on server-side.
Add APIPage
to your MDX Components, so that you can use it in MDX files.
It is a React Server Component.
Generate Files
You can generate MDX files directly from your OpenAPI schema.
Create a script:
Only OpenAPI 3.0 and 3.1 are supported.
Generate docs with the script:
Features
The official OpenAPI integration supports:
- Basic API endpoint information
- Interactive API playground
- Example code to send request (in different programming languages)
- Response samples and TypeScript definitions
- Request parameters and body generated from schemas
Demo
How is this guide?