Update from individual MDX endpoint pages to automated OpenAPI generation with flexible navigation
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.
Prepare your OpenAPI specification.
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.Update your navigation structure.
MDX
page references with OpenAPI endpoints in your docs.json
.Remove old MDX files.
MDX
endpoint files that you no longer need.MDX
pagesMDX
pages when you need: