If you are currently using individual MDX pages for your API endpoints, you can migrate to autogenerating pages from your OpenAPI specification while retaining the customizability of individual pages. This can help you reduce the number of files you need to maintain and improve the consistency of your API documentation. You can define metadata and content for each endpoint in your OpenAPI specification and organize endpoints where you want them in your navigation.Documentation Index
Fetch the complete documentation index at: https://mintlify-mintlify-agent-cursor-1777414560.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Migration steps
Prepare your OpenAPI specification.
Ensure your OpenAPI specification is valid and includes all endpoints you want to document.For any endpoints that you want to customize the metadata or content, add the
x-mint extension to the endpoint. See x-mint extension for more details.For any endpoints that you want to exclude from your documentation, add the x-hidden extension to the endpoint.Validate your OpenAPI file using the Swagger Editor or Mint CLI.
Update your navigation structure.
Replace MDX page references with OpenAPI endpoints in your
docs.json.Navigation patterns
You can customize how your API documentation appears in your navigation.Mixed content navigation
Combine automatically generated API pages with other pages:Multiple API versions
Organize different API versions using tabs or groups:When to use individual MDX pages
Consider keeping individual MDX pages when you need:- Extensive custom content per endpoint like React components or lengthy examples.
- Unique page layouts.
- Experimental documentation approaches for specific endpoints.