IntegrationsOpenAPI
Advanced
Advanced topics of Adalt OpenAPI
How It Works?
Adalt OpenAPI has two parts:
File Generator
It generates the MDX page with correct frontmatter, so you don't have to manually create a MDX file for each endpoint/operation.
OpenAPI Server
It renders the API page, a server component.
Markdown
Markdown/MDX content is rendered in the server component (during runtime) using @mdx-js/mdx
.
Your Remark/Rehype plugins (e.g. Rehype Code) configured in Adalt MDX or other source providers, will not be shared. Adalt OpenAPI uses a separate MDX processor instance.
Use API Page
To use the APIPage
component in your MDX files directly:
Prop | Description |
---|---|
document | OpenAPI Schema |
operations | Operations (API endpoints) to be rendered |
hasHead | Enable to render the heading of operation |
Last updated on