











Launch Week Day 5 brings OpenAPI automations to your documentation 🤖.
When you're constantly shipping changes to your API, it's important to reflect those changes in your documentation ASAP.
Our revamped setup makes autogenerating your API Reference docs seamless, removing the need for any manual labor to reflect changes in production
To auto-populate your API Playground pages, you can now add an openapi field to an object in the tabs or anchors arrays in the mint.json.
Example with Anchors:
{ "anchors": [ { "name": "API Reference", "openapi": "/path/to/openapi.json", "url": "api-reference", "icon": "square-terminal" } ] }
![]()
Example with Tabs:
{ "tabs": [ { "name": "API Reference", "openapi": "/path/to/openapi.json", "url": "api-reference" } ] }
![]()
We also support this functionality for OpenAPI Specs hosted at a URL. For example:
{ "tabs": [ { "name": "API Reference", "url": "api-reference", "openapi": "https://petstore3.swagger.io/api/v3/openapi.json" } ] }
Try out the feature yourself by updating your CLI:
**`npm i mintlify@latest -g
`**
And adding the following code to your mint.json:
{ "tabs": [ { "name": "API Reference", "url": "api-reference", "openapi": "https://petstore3.swagger.io/api/v3/openapi.json" } ] }
Thanks for tuning into Launch Week III!
Missed our previous launch days? Follow our Twitter/X or join our community to catch up on our exciting feature releases.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。